Fragment caching with W3TC plugin
-
I just got the pro version of W3TC to be able to use fragment caching. I don’t know if I am missing something. So far:
I have defined in wp-config.php: define( ‘W3TC_DYNAMIC_SECURITY’, ‘1234321’ );
In the options from WP Admin I have set the page cache to Disk: Basic and I have also turned on late initialization under the Page Cache settings section. To be sure that it works, I am trying to show the current server time but it still remains cached. This is my code:
<?php if (!defined(‘W3TC_DYNAMIC_SECURITY’)) { define(‘W3TC_DYNAMIC_SECURITY’, 1234321); } ?>
<!– 1234321 mfunc echo ‘This is my website cached’; –>
echo ‘The time is ‘.date( ‘H:i:s’, time() );
<!–/mfunc 1234321 –>This shows current time but doesn’t move. What am I missing? Thanks!
- The topic ‘Fragment caching with W3TC plugin’ is closed to new replies.