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
I'm trying to understand how django-cms handles caching because it's a little unintuitive. I want the entire page to be cached, but if I have a plugin that is dynamic based on the output, I can't actually get caching?
Why can't django-cms just load the page normally and then cache based on all the dynamic output during that load?
Instead, I have to the disable plugin cache and then the entire page never caches.
Expected behaviour
Page is loaded dynamically the first time, the second time it's cached based on the dynamic output of the last load.
Actual behaviour
Pages won't cache with a plugin that generates dynamic values. So you either have to pick the page generating the wrong values, or have no cache?
Environment
Python version: 3.6.5
django CMS version: 3.4.5
The text was updated successfully, but these errors were encountered:
What do you mean with "a plugin that is dynamic based on the output"?
Anyway, if you specify cache=False on a cms plugin, the page displaying that plugin will never be cached, and, most important, no cache headers that say "cache this", are sent. This is intendend, and needed like this. otherwise, you would need a per user/session cache, per IP, or whatever constraints you have...endless! the get_cache_expiration plug allows some more fine grained control if needed..
As far as I know, not dynamic plugin output might get cached anyway, but I'm not sure here.
Summary
I'm trying to understand how django-cms handles caching because it's a little unintuitive. I want the entire page to be cached, but if I have a plugin that is dynamic based on the output, I can't actually get caching?
Why can't django-cms just load the page normally and then cache based on all the dynamic output during that load?
Instead, I have to the disable plugin cache and then the entire page never caches.
Expected behaviour
Page is loaded dynamically the first time, the second time it's cached based on the dynamic output of the last load.
Actual behaviour
Pages won't cache with a plugin that generates dynamic values. So you either have to pick the page generating the wrong values, or have no cache?
Environment
The text was updated successfully, but these errors were encountered: