How to disable caching of included PHP file?
-
On my site’s front/home pages I inject some HTML by including a PHP file via a PHP code widget. Is there a way of disabling W3TC caching – not for the home pages – but just for the output of that included file? I tried using:
<?php if (function_exists('w3tc_pgcache_flush')) { w3tc_pgcache_flush(); } ?>
… in the included file, and flushed the entire cache, but I saw no change – the included file’s output should contain random sequences, but they seem always to be cached from refresh to refresh (until and unless I flush the entire W3TC cache).
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to disable caching of included PHP file?’ is closed to new replies.