Page Cache > Never cache the following pages:
year/month
-
This reply was modified 9 years, 4 months ago by
Kimberly.
It doesn’t seem to work.
Any suggestion about any exception directly on the code I want not cached?
The code I don’t want cached is actually in header.php
Ahh so you want to exclude php code..you can use fragment caching.
1. wp-config.php: define('W3TC_DYNAMIC_SECURITY', 'myid');
2. header.php: <!-- mfunc myid-->any PHP code<!-- /mfunc myid -->
3. General Settings > Page Cache > Disk: Basic
Hi, I tried fragment caching but it seems it doesn’t work.
Maybe it works only with pro version, doesn’t it?