Glossary: Django Beyond the Basics
cache.get_or_set
Also written: get_or_set
Returns the cached value, or calls the function you give it and caches the result. Pass the function without brackets so it runs only when needed.
Glossary: Django Beyond the Basics
Also written: get_or_set
Returns the cached value, or calls the function you give it and caches the result. Pass the function without brackets so it runs only when needed.