jolpica / jolpica-f1

Apache License 2.0
41 stars 1 forks source link

Improve internal cache of requests #46

Open jolpica opened 3 months ago

jolpica commented 3 months ago

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: