Got it to work:
In wp-config.php I added:
define('W3TC_DYNAMIC_SECURITY', 'mysecretcode');
I created a PHP file (nocache.php) containing just the HTML to be output, and put it in the root folder. Then in my template file I used:
<!-- mclude mysecretcode nocache.php --><!-- /mclude mysecretcode -->
Related Posts:
- Difference between w3total cache disk enhanced and disk basic [closed]
- How does W3 Total Cache CDN URL rewrites work? [closed]
- Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]
- Disable WordPress cache programmatically on a request [closed]
- Is W3 Total Cache still useful with CloudFlare? [closed]
- w3 total cache minification breaks wp_localize_script() [closed]
- W3 Total Cache, RackSpace Cloud Files, and Forcing Downloads [closed]
- Page cache for categories not updating with W3 Total Cache [closed]
- Exclude content from w3 total cache [closed]
- Need to create a function that will run regardless of W3TC PageCache for every page request [closed]
- W3 Total Cache active but not working [closed]
- Exclude certain block from caching using Fragment Caching – doesn’t work [closed]
- W3 Total Cache Minify Rewrite Error with WordPress on nginx [closed]
- How to cache custom pages using W3 Total Cache? [closed]
- Lighttpd, WordPress Caching plugin [closed]
- Showing as logged in after logout (W3 Total Cache issue) [closed]
- WP-e-Commerce and W3-Total-Cache integration problem [closed]
- Trouble with WordPress local development and deployments
- How to exclude a specific template from being cached by a CDN [closed]
- How do I get W3 Total Cache not to cache sidebars? [closed]
- Programmatically disable W3 Total Cache in development environment [closed]
- How can I use fragment caching to exclude certain plugins from being cached?
- How can I get W3 Total Cache to recognise Amazon ElastiCache? [closed]
- w3 Total Cache expire headers not set [closed]
- Transient API and caching Plugins
- How to handle is_user_logged_in() with w3 total cache [closed]
- How to hide W3 Total Cache from non admins?
- Can I flush W3TC’s cache in a capistrano deploy? [closed]
- W3 Total Cache – Converting Apache rewrites to Nginx [closed]
- Where is New Relic API key? [closed]
- Intercepting Before W3 Total Cache [closed]
- WordPress Leverage browser caching Show how to fix & Eliminate render-blocking JavaScript and CSS in above-the-fold content Show how to fix
- W3Total Cache problem with Nginx [closed]
- Enabling Cache on WP Membership Sites. Good OR Bad?
- Getting “Internal Server Error” when enabling ‘Set expires header’ in W3 Total Cache [closed]
- Remove “?repeat=w3tc” from any url
- How we stop caching of particular div when i am using w3 total cache plugin? [closed]
- Split Testing with W3 Cache Enabled? [closed]
- Exclude Random Redirect from caching?
- W3 Total Cache Minify + cforms II = POST /wp-content/plugins/cforms/lib_ajax.php 500 (Internal Server Error) [closed]
- Memory consumption in w3-total-cache vs wp-super-cache? [closed]
- How do I create a link in the WP admin bar that purges all caches (W3 Total Cache)?
- W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove
- Browser detection booleans mess. Caché plugin?
- Pre-Caching and Googlebot
- When using W3 Total Cache should I remove my enqueues from functions.php [closed]
- WordPress cache login issue (w3 total cache) [closed]
- W3 Total Cache + S3 + Cloudfront. [closed]
- W3 Total Cache Minification – Any way to not use php? [closed]
- W3 Total Cache benefits without using plugin? [closed]
- Is this Solution for Caches vs Cookies Going to Get Me in Trouble?
- Pros and Cons for high “expire time” on wp-super-cache or w3-total-cache? [closed]
- Limit cache size from W3 Total Cache [closed]
- How to stop wordpress from changing default .htaccess permissions to 444
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]
- AJAX vs Fragment Caching for W3 Total Cache [closed]
- Combine JS and CSS for WordPress admin
- strange characters in wordpress website displayed for visitors [closed]
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- Make W3 Total Cache “Empty All Caches” function purge varnish [closed]
- Can’t get rid of minify after uninstalling W3 Total Cache [closed]
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Settings to get the most out of W3 Total Cache
- Enable Minify in W3Total Cache using NGINX [closed]
- Share media among different domains
- Should the page cache be refreshed often? [closed]
- Rename W3 Total Cache admin menu
- How can I render shortcode so that its not cached by Caching plugins?
- PHP 5.5, w3 Total Cache, and opcache [closed]
- w3 total cache keeps minifying my feeds
- Will setcookie work if there is a cache plugin installed?
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- W3 Total Cache JS and css Minify folder are empty
- Is it wise to add plugins to the Object Cache?
- W3 Total Cache CSS & JS files GZip issues [closed]
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Cache plugins and ajax nonce verification
- Where to put W3 Total Cache rewrite rules in .htaccess? [closed]
- Combile External JS files using W3 Total Cache [closed]
- Spam injected in w3 total cache page cache [closed]
- How to add support for caching plugins for my own plugin?
- How can I cache font files on WordPress [closed]
- W3 total – leverage browser caching not working with cdn delivered images [closed]
- WordPress And High disk i/o
- WordPress 4.2.3 on Windows Server 2008 R2 Creating Files as read only
- Is it OK combined wp-include js, jquery, css? [closed]
- Scheduling doesn’t work due to caching?
- APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC [closed]
- W3 Total Cache Help – How to update DNS Zone for a static domain [closed]
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- WordPress Userroles button getting cached
- Primary Menu doesn’t show because of w3 cache
- How to use nonces for frontend AJAX voting if the page gets cached?
- Ads below footer
- Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC
- What is good W3 total database caching option? [closed]
- Bluehost WebHost and performance problems with W3TC [closed]
- WP Super Cache versus W3 Total Cache [closed]
- To what degree can use of caching-plugins and a CDN boost WordPress performance? [closed]