need to stop caching home page
-
I have php code on my homepage template that randomly displays a different image as folks arrive at that page.
With Zen Cache enabled, the home page only refreshes at the set Expiration Time and the image will not change until then. With Zen Cache disabled, the image changes with each refresh of the home page.
Below is an example of code that is added to the end of the homepage when Zen Cache is on:
<!– ZenCache file path: /cache/zencache/cache/http/www-porkopolis-org/index.html –>
<!– ZenCache file built for (https://www.porkopolis.org/) in 0.21304 seconds, on: Feb 4th, 2016 @ 2:05 pm EST. –>
<!– This ZenCache file will auto-expire (and be rebuilt) on: Feb 11th, 2016 @ 2:05 pm EST (based on your configured expiration time). –>
<!– ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ –>
<!– ZenCache fully functional ?? Cache file served for (https://www.porkopolis.org/) in 0.00047 seconds, on: Feb 4th, 2016 @ 7:09 pm UTC. –>I have tried adding each of these individually in the URI Exclusion Patterns with no effect.
/index.html
/index.htm
/index.php
/index.*
/index*
/?p=11057 (the page ID)
/*11057
/*11057*
*11057Is there a solution for this?
- The topic ‘need to stop caching home page’ is closed to new replies.