if you want to flush the cache you can do that:
the plugin has functions for that
<?php
flush_pgcache() //page cache
flush_dbcache() // database cache
flush_minify() // minify cache
flush_all() //all caches
?>
and you just need to call it like this:
<?php
$w3_plugin_totalcache->flush_all();
?>
and that is basically the answer to the question in the title
“cache refresh programmatically”
Related Posts:
- Best way to show Dynamic Content on a Cached WordPress Site?
- Pros and Cons for high “expire time” on wp-super-cache or w3-total-cache? [closed]
- Limit cache size from W3 Total Cache [closed]
- WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]
- Varnish + W3 Total Page Cache [closed]
- W3 Total Cache doesn’t detect memcached [closed]
- Settings to get the most out of W3 Total Cache
- How to force content refresh of a page that has been loaded previously by the user? [closed]
- Transient / object cache maximum key length [duplicate]
- Should the page cache be refreshed often? [closed]
- What is difference between ‘Page Cache’ and ‘Object Cache’ in WordPress?
- Getting soft 404 errors (200 status) when caching plugins are enabled
- server load. $_SERVER[‘REMOTE_ADDR’] and $_SERVER[‘HTTP_HOST’] [closed]
- Headway body classes and W3TC page cache conflict [closed]
- How to cache a different page version based on HTTP header?
- W3 Total Cache can’t create files [closed]
- Combile External JS files using W3 Total Cache [closed]
- How can I cache font files on WordPress [closed]
- W3 total – leverage browser caching not working with cdn delivered images [closed]
- HIgh CPU usage – Will using cache plugins help
- Scheduling doesn’t work due to caching?
- APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC [closed]
- w3 total cache – Object Caching 2165/2469 objects? [closed]
- Changing WP Object Caching during runtime
- Clear cache when comment is added
- WordPress varnish pages printed twice
- WordPress Userroles button getting cached
- custom php file inside my custom folder of plugins directory is not caching
- w3 total cache uninstall remove cache
- Page wrongly displayed when cache plugin activated
- Bluehost WebHost and performance problems with W3TC [closed]
- W3 Total Cache Minification: way to revert back? [closed]
- Is this Solution for Caches vs Cookies Going to Get Me in Trouble?
- Should I use Transient API to store HTML String, or Object?
- Caching: APC vs APCu vs OPcache
- Is define(‘WP_CACHE’, true) needed for object caching?
- Prevent WordPress from sending Cache-control http header
- Optimize apache for WP use
- Does a query executed through wpdb class get cached?
- Trouble with Transient API when W3TC is activated [closed]
- Configuring WordPress for Amazon CloudFront Caching?
- W3 Leverage browser caching not working for google pagespeed [closed]
- Caching: Force fresh content for logged-in users (potentially by adding a query variable to the URL)
- Multiple WordPress sites eat up alot of RAM
- Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]
- Clear cache when a post is submitted [closed]
- Disable WordPress cache programmatically on a request [closed]
- What exactly is an advanced object cache?
- Using a wildcard with delete_transient()
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- Will I see a performance hit if I use native API calls like get_the_title() instead of $post->post_title?
- Is it possible to disable caching of an option when using w3 total cache?
- Nginx + WordPress + HHVM: Why isn’t Batcache working? Would Varnish help even more?
- Does a low traffic WordPress site need a caching plugin and a CDN
- Automatically Refresh WordPress Stylesheet
- wp_cache_set() or wp_cache_add()
- How to use cache with simplepie
- Fragment caching increasing database queries
- AJAX vs Fragment Caching for W3 Total Cache [closed]
- Can I force get_option to go back to the DB instead of cache?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- Which WordPress pages/URLs should never be cached?
- How to archive a wordpress site (make it read only)
- How to purge all transient caches?
- Stale cache handling with a persistent object cache
- Exclude certain block from caching using Fragment Caching – doesn’t work [closed]
- Are there any server requirements for WordPress transients to work properly?
- Writing a cache manifest file for a WordPress blog (app cache, offline web applications)
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Help Pinpointing Source of Caching Issue
- How to exclude a specific template from being cached by a CDN [closed]
- How to clear cache without a plugin [closed]
- can’t see live version of style.css – is it web server caching?
- Want to enforce the visitor to load the new version of your stylesheets and scripts [closed]
- Can someone explain WordPress caching, and what’s the best in my scenario?
- Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]
- Speed up WordPress
- wp-super-cache exclude file from caching
- APC object caching in combination Batcache/memcached page caching?
- WordPress caching in development
- Plugin a specific cache functionality?
- W3 total Cache – Site with query strings
- Possible to configure nginx to ignore cache for logged in users in certain roles only?
- Check if a user is connected and get is ID without fully loading wordpress
- Should I enable FastCGI on WordPress?
- Using Multisite with a CDN?
- How can I render shortcode so that its not cached by Caching plugins?
- Programmatically insert hierarchical terms & set terms for post causes glitch? [duplicate]
- Will caching WordPress affect session variables, custom filed updates and displaying images from a non wordpress table?
- How to totally disable cache in WordPress?
- Automatically enabled caching in some hosting companies w/o visible plugin (Must use plugin)
- Database Cache and Object Cache Difference?
- Register script version not showing
- How to purge all transient caches?
- How can I use fragment caching to exclude certain plugins from being cached?
- W3 Total Cache plugin integration
- PHP Code stuck in Cache [Memcached] [closed]
- Plugin Expires Headers – W3 Total Cache [closed]
- Transient API and caching Plugins
- When use a cache system with WordPress