Skip to content

common/utils: Add a django_cache decorator and use it in codebase

Add a decorator enabling to put the result of a function call in Django cache, subsequent calls will then directly return the cached value.

Use that decorator whenever it is possible in swh-web codebase to simplify the handling of cached values and improve code readability.


Migrated from D7526 (view on Phabricator)

Merge request reports