Best way to show Dynamic Content on a Cached WordPress Site?

So, there are many sub-questions, i’ll try to address each.

Views Counter Problem – I could make this Value/function be ran using
Ajax. Once the new Cached/Static page is loaded, Javascript could then
use Ajax to request and update the Views counter for that page.

Totally agree: added benefit: loading it via ajax when “important” content has finished loading is the way to go. Do everything you can to reduce the page loading time. I’d definitely go with Ajax on this one.

Post Comments Problem

I doubt this will every be a big issue. But again: ajax. Load comments apart from the “main” content. Have it push new comments regularly (just like Stackoverflow does, or twitter.com, warning the user and waiting for his click to refresh the comments stream).

Site-wide Sidebar

I would use another plugin: WP Widget Cache, which allows you to set the caching time for each widget in your sidebars, and works well with the usual caching plugins. In your case, just set “0” for no caching for those widgets, or, “10 minutes” (better than no caching at all).


Leave a Comment