How to exclude the sidebar.php from caching
-
Hi,
I’m trying to figure out, how to exclude certain PHP content which I display in a sidebar from caching.For example: I have a wordpress site with approx. 100 pages, which are mostly static.
The only dynamic part on each page is a sidebar, which is the same on every page.Within the sidebar I display dynamic content:
<?php include('weatherdetails.php'); ?>Now my problem is, how to tell the wp-super-cache to cache all these pages, but exclude this template part from the caching.
The topic ‘How to exclude the sidebar.php from caching’ is closed to new replies.