Quantcast
Viewing all articles
Browse latest Browse all 19292

ransom1337 on "[Plugin: W3 Total Cache] Is there a way to make specific lines of code not cache?"

I have a PHP query in my website which detects if the user is on a desktop and displays a part of the header (and therefore leaves out the header on mobile, which is what it's intended to do).

It was working perfectly but now I've started using Page Caching, when I visit the site on mobile, the part of the header is now showing, due to the cache.

Is there a way I can exclude this PHP query from being cached at all please? It's in my header.php.

The website is http://www.bitofageek.com if you need to look. Thanks.

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


Viewing all articles
Browse latest Browse all 19292

Trending Articles



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