Ideal settings for lifetime/garbage collection/preloading?
-
We’re using the Pro version of W3TC and using fragment caching because our site has a Woo-based store with some pages containing hundreds of items (but we need to keep things like the cart menu dynamic).
Once the big pages have been cached they load very quickly, but often we revisit the site after some period of time and those pages load very slowly, as if they are not cached.
Ideally these pages would always be cached unless a product is updated, at which point the page cache would immediately be regenerated. While the regeneration is occurring, we would rather see an older cached page than to ever have a state where there is no cached page at all.
There are various settings both for fragment caching and for page caching that suggest they may have an effect on all this. Maximum lifetime of cache objects, garbage collection interval (in both places), default lifetime of cached fragments. Does this mean that if we have pages cached they might get flushed automatically and end up not being cached? How can we determine the optimum settings? I can’t find any documentation that suggests what affects what here.
And there are the cache preload/priming settings – I _think_ this depends on having a good sitemap, which we need to tweak. I wonder why “preload the post cache upon publish events” is not checked – would we not want any changes to be preloaded into the cache? Also how does preloading work with the apparent clearing of cache objects noted in the previous paragraph?
Thanks in advance!
- The topic ‘Ideal settings for lifetime/garbage collection/preloading?’ is closed to new replies.