Page layout cache is great for static pages, but is there a way to make it working with dynamic sites?
We have a website where a page has a lot of shared content which could be cached, but there are small areas which are customized for each user, e.g. Login/Logout in navigation
So is there a way to have conditional caching ,e.g. layout cache for guest users and cache page content for logged in users?
Or maybe have some placeholders in Page Layout Cache which can be replaced afterwards?
The best approach we have found is to bring everything via Ajax that is personalized. This way, our layout and pages just have placeholder divs and at runtime, those personalized areas are brought in via angularJS or any ajax call.
This is the best approach we have used so far.
Luis Majano
CEO
Ortus Solutions, Corp www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408
most requests come from users which are not logged in (they could use page layout cache) so I would prefer to control the cache behaviour somehow programmtically.
For guest users and bots it doesn’t make much sense to have additional requests.