HomeSoftware Heritage

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

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

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.

Details

Provenance
anlambertAuthored on Apr 7 2022, 4:59 PM
anlambertPushed on Apr 8 2022, 11:25 AM
Differential Revision
D7526: common/utils: Add a django_cache decorator and use it in codebase
Build Status
Buildable 28245
Build 44220: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.