Now that low-level caching capabilities were added to the framework (as part of #61), one interesting feature to add would be the ability to perform template fragment caching.
To do that, a new cache template tag should be included. This template tag should require at least two arguments (a key and an expiry value in seconds), and should allow to cache the rendered content corresponding to the template content within the cache tag block:
Additionally, it should be possible to specify additional positional arguments in order to "complement" the key used for the cache with dynamic template variable values. For example:
Description
Now that low-level caching capabilities were added to the framework (as part of #61), one interesting feature to add would be the ability to perform template fragment caching.
To do that, a new
cache
template tag should be included. This template tag should require at least two arguments (a key and an expiry value in seconds), and should allow to cache the rendered content corresponding to the template content within thecache
tag block:Additionally, it should be possible to specify additional positional arguments in order to "complement" the key used for the cache with dynamic template variable values. For example: