Suggested Approach to resolve Page Cache Dilemma
-
I have multiple sites that I use the W3 Total Cache plugin. Some use the free version and the others the paid version. I would like to know the best approach to solve a problem when the home page is cached. The issue is that page caching does not accommodate some content differences for logged in users, and the WordPress menu structure changes when a user is logged in with unique links for logged in users such as “Edit my Profile”. Some sidebar widgets are populated with different content when a user is logged in.
I have a custom plugin that provides similar functionality for the menu and sidebar widgets on these sites. Since I have total control on the widget content and menu, all served with data generated by PHP code, what is the best way using W3TC to address the issue?
Should I use fragment caching? If so can the mfunc tags be inserted in the HTML output generated by the PHP code (e.g. before the start and after the end of the menu)?
Should I generate AJAX calls to dynamically update certain areas of the page?
Are there other approaches?
The page I need help with: [log in to see the link]
- The topic ‘Suggested Approach to resolve Page Cache Dilemma’ is closed to new replies.