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 https://www.bitofageek.com if you need to look. Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Is there a way to make specific lines of code not cache?’ is closed to new replies.