Skip to content
Snippets Groups Projects
Commit b364c93d authored by Antoine Lambert's avatar Antoine Lambert
Browse files

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.
parent 96b27bf4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment