You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently page cache is done via the cache_page decorator.
However this caches the entire page, and results in separate caches for different formats (e.g. html and json).
Instead the cache should be made on the output of the serializer's to_representation method.
This has the following benefits:
More reuse of the cache
Currently when the cache is hit, it does not count towards rate limiting. Which we may not be what we want.
The text was updated successfully, but these errors were encountered:
jolpica
changed the title
Improve internal cacheing of requests
Improve internal cache of requests
May 21, 2024
Currently page cache is done via the
cache_page
decorator.However this caches the entire page, and results in separate caches for different formats (e.g. html and json).
Instead the cache should be made on the output of the serializer's
to_representation
method.This has the following benefits:
The text was updated successfully, but these errors were encountered: