wp_schedule_event is only run when your site is visited and the scheduled time has past. If varnish is serving a non expired cached page then your visitor is not hitting WordPress.
Schedules a hook which will be executed by the WordPress actions core
on a specific interval, specified by you. The action will trigger when
someone visits your WordPress site, if the scheduled time has passed.
See the Plugin API for a list of hooks.
Eventually when your cache expires or is invalidated your wp_cron should fire when varnish rebuilds the cache.
Related Posts:
- W3 total cache – cache refresh programmatically [closed]
- Best way to show Dynamic Content on a Cached WordPress Site?
- Optimize apache for WP use
- 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]
- Nginx + WordPress + HHVM: Why isn’t Batcache working? Would Varnish help even more?
- 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?
- Possible to configure nginx to ignore cache for logged in users in certain roles only?
- Getting soft 404 errors (200 status) when caching plugins are enabled
- PHP Code stuck in Cache [Memcached] [closed]
- 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
- Jetpack stats and caching strategy [closed]
- 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
- Does a query executed through wpdb class get cached?
- 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)
- Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]
- 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?
- Automatically Refresh WordPress Stylesheet
- 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]
- Help Pinpointing Source of Caching Issue
- How to clear cache without a plugin [closed]
- Cache issues with redis and nginx
- Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]
- APC object caching in combination Batcache/memcached page caching?
- Programmatically insert hierarchical terms & set terms for post causes glitch? [duplicate]
- How to totally disable cache in WordPress?
- Database Cache and Object Cache Difference?
- How can I use fragment caching to exclude certain plugins from being cached?
- When use a cache system with WordPress
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- How do I fetch feed info from cache instead of directly from feed?
- WordPress with php 5.5 and zend opcache
- Make WordPress cache permanent for some pages until edited
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- Disable feed cache for custom RSS feed?
- How do I enable dynamic content in a theme cached with WP Super Cache?
- WordPress & Fastcgi proper setup?
- WordPress Leverage browser caching Show how to fix & Eliminate render-blocking JavaScript and CSS in above-the-fold content Show how to fix
- Accelerate and clean up WordPress [closed]
- Theme compression/ minifying or W3 Total Cache – which should I use? [closed]
- Enabling Cache on WP Membership Sites. Good OR Bad?
- RSS: fetch_feed caching with different caching delay per feed?
- How to be sure to get last page version without ANY cache?
- Last-Modified header support doesnât speed up server processing – want more
- Browser cache for dynamic content (list of tags)
- How to specify expiration of cacheable resources? [closed]
- How do I serve fully cached full HTML on cloudfront
- W3TotalCache and Javascript — what should go where, when?
- Minifing js files with w3 total cache and expiring the combined file [closed]
- Get user name and caching system
- How to solve simple wp simple ajax chat caching problem
- dynamic page not displaying correctly when Varnish hosting ignores query string parameters
- What do I do if my WordPress site is suddenly sanitizing portions of URLs it shouldn’t?
- Language does not switch while cache is enabled
- permalinks constantly needs re-saving
- How to disable cache for the content returned by a shortcode
- Splash pages on a high traffic site
- W3 Total Cache Minification – Any way to not use php? [closed]
- Pagination in WP query with transient API
- W3 Total Cache and IIS7 not doing much [closed]
- After Migration, Warning: include_once() errors on all pages
- Server Variables not recognized in certain posts
- W3 Total Cache benefits without using plugin? [closed]
- Browser Cache causes ‘Orderby=rand’ to return the same posts
- nginx + wordpress: Best practices for configuring it to be secure, reliable, and fast? [closed]
- Experiencing a weird caching issues without any caching plugins
- I am facing problem in loading and downloading Mp3 files
- How to make WordPress ignore GET parameters when caching pages?
- Content Encoding Error