Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19296

christopheran on "[Plugin: W3 Total Cache] Page cache when there's dynamic content?"

$
0
0

I'm looking at using this plugin with MaxCDN.

However... in the php code on my single.php file - my script grabs a page count from mysql, increments it by one and puts it back in, and if the current count is even - it grabs my writer's adsense code from mysql and displays it - if the current count is odd - it shows my adsense code.

If I use page cache - it's going to show just one of our adsense codes - whichever one happens to be cached, correct? It won't alternate each page load.

How can I avoid that? Should I not use page cache, just the other options? Or perhaps rewrite the script so that the adsense code to use is grabbed by a javascript include, and have that included not cached?

Thanks for any advice,

Chris

http://wordpress.org/extend/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 19296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>