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]
- Configuring WordPress for Amazon CloudFront Caching?
- Will I see a performance hit if I use native API calls like get_the_title() instead of $post->post_title?
- 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
- How to use cache with simplepie
- Fragment caching increasing database queries
- Stale cache handling with a persistent object cache
- How to clear cache without a plugin [closed]
- can’t see live version of style.css – is it web server caching?
- wp-super-cache exclude file from caching
- Plugin a specific cache functionality?
- Check if a user is connected and get is ID without fully loading wordpress
- How can I render shortcode so that its not cached by Caching plugins?
- Database Cache and Object Cache Difference?
- Register script version not showing
- PHP Code stuck in Cache [Memcached] [closed]
- Optimizing Jetpack for WordPress [closed]
- Will setcookie work if there is a cache plugin installed?
- Transients are not expiring as expected in simple custom plugin
- Prevent installation of style.css cookies and file caching
- How to speed up my site [duplicate]
- How can I cache the LearnDash quizzes on my server?
- WP_Object_Cache for heavy WP_Query
- I am getting useless alphabets in images link
- How to decode wordpress transient cache stored in database?
- WordPress PHP 5.5 and OPcache
- Batcache messages no longer in page source
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Fixed version number for cached stylesheets and javascript
- How does WP’s cache maintain persistence through page reloads?
- How to clear user’s browser cache after publishing a new post?
- Cache plugins and ajax nonce verification
- customize wordpress database error page
- Where to put W3 Total Cache rewrite rules in .htaccess? [closed]
- Any idea why Google not caching my site? [closed]
- Spam injected in w3 total cache page cache [closed]
- How to add support for caching plugins for my own plugin?
- Gravity forms / Recaptcha / Autoptimize – somewhere it goes wrong
- How to solve minify js and css first time load delay?
- How to get Caching Plug-ins to work on localhost with HTTPS?
- WordPress website not showing changes without clearing cache
- Cloud flare, cache, minify question [closed]
- Cache WordPress for offline use
- issues with object cache (memcached as backend) and wpmu when flush_all is run
- How to get the URL of a sitemap that contains a certain post?
- How to not cache nonces with WP Rocket?
- Password Protected Pages Don’t Accept A Valid Password After Changing The Password
- Google Page Speed
- Language does not switch while cache is enabled
- Way to prevent snippet of template from being cached?
- How to make login / logout links cache independent?
- Non Admins Getting Cached Posts
- Why WordPress cache is not available after reload page?
- WordPress on mobile devices with new data after updating page
- New blog posts don’t update on page – How to force update of cookies more frequently?
- PHP Fatal Error in cache.php on line 123 $wp_object_cache is non-object
- No Query String vs Ignore Query String in WordPress
- Completely reload style.css
- Plugin files not updated (cache cleared)
- Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC
- Serve content from centralized location
- My website resets when accessing the index page
- Major cache but only on WordPress site
- User cannot authenticate after signup when object cache enabled
- W3 Total Cache and IIS7 not doing much [closed]
- Cannot add version of main.css to wordpress on testing enviroment
- How to create a transient that persists the data for the whole duration of the expiration, even when object cache is enabled?
- Why does enabling caching break password protected pages? Is there a way around this?