Warm Cache


Crawls your website-pages based on any XML sitemap. If you have a caching plugin this will keep your cache warm.
Speeds up your site.
Compatible with following elements: < sitemap > < url >
All urls in your sitemap will be visited by the plugin to keep the cache up to date.
Will show average page load times and pages visited.

Needs google XML sitemap to read the generated XML file.
Needs a cronjob (wget or curl) to call the plugin. You need to setup the cronjob yourself! (Or ask your sysadmin to help you).
* Coding by: MijnPress.nl Mastodon profile More plugins
* Crawl script idea by http://blogs.tech-recipes.com/johnny/2006/09/17/handling-the-digg-effect-with-wordpress-caching/

Upgrade option: Save you all the hassle and use our Auto Warm cache service



  1. Upload directory warm-cache to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Visit Plugins menu to view your Warm cache options.
  4. Run a cronjob. See the menu for the cronjob URL.
    Run it as often as you like, preferably more often then your
    page cache expiration time.
    Example: Page cache expiration = 1 hour, so set your cronjob at 30 minutes.

    Set it higher when you have lots of pages


I have a BIG sitemap that takes over 5 seconds to load

use a filter called ‘http_request_timeout’

I have multiple (language / domain) sitemaps, but I can only add one sitemap!

Use a sitemap index, pointing to all your (custom/sub)-sitemaps. Only add the sitemap main index file to the plugin. Do NOT have this in the custom file name:
warmcache-sitemap.xml OR warmcache. Use this for example: supersitemap.xml or my_cache_sitemap.xml

How to disable logging completely (for very large sites)?

Set a define in your wp-config (at the top, newline, after <?php ) with name MP_WARM_CACHE_NO_LOGGING_AT_ALL and value “yes”
Please check https://plugins.trac.wordpress.org/browser/warm-cache/trunk/readme.txt#L38 DO not copy directly below due to the “curly quotes”

How to run a cronjob?

Ask your webhost how to set up a get call using wget or curl. See Installation for instructions howmany times you should call the cronjob.

The plugin shows an error, it cannot read the XML sitemap

The fact that you are able to “see” the XML in your browser does not guarantee that PHP is able to read it too.

Consult your host about this, if that fails.


Sucuri / Audit log notifies about new posts beeing created

We use the hidden post type warmcache to store statistics. We also remove them upon each crawl.
Feel free to ignore creation of posts with warmcache.
See https://wordpress.org/support/topic/29-september-2016-update-causing-constant-post-update-notifications-from-secur/

I have set up the cronjob but the stats table on the plugin page remains empty.

@see The plugin shows an error, it cannot read the XML sitemap

How to override the 20 pages crawl limit

Set a define in your wp-config (at the top, newline, after <?php ) with name MP_WARM_CACHE_FILTER_LIMIT and value INTEGER
Please check https://plugins.trac.wordpress.org/browser/warm-cache/trunk/readme.txt#L58 DO not copy directly below due to the “curly quotes”

I have a lot of questions and I want support where can I go?

The support forums over here, drop me a toot to notify me of your support topic over here.
I always check my toots, so mention my name with https://mastodon.social/@ramonfincken and your problem.


2022 年 11 月 2 日
Works very well. Thanks a lot!
2021 年 12 月 1 日
Cannot do anything with it! Don’t waste your time! The idea is very good, unfortunately it is very underdeveloped and full of bugs.
2021 年 9 月 15 日
Litespeed cache plugin has it’s own crawler but a2hosting shared disable litespeed crawlers, this plugin it’s still working and the log states it visits all urls on the sitemap by batches of 20 pages. But anyway LSCache still give misses on the Warm Cache crawled urls/pages, so it’s not good for that cache plugin. It’s not warm cache plugin’s fault since it surely do what it says it does, it crawls. Thank you!
2019 年 8 月 24 日
My cache plugin has a crawler built in, but it can’t be enabled on our server for reasons. So this plugin is a great alternative. Thank you!
2019 年 6 月 9 日
Work great with cache enabler, but its possible to add only one sitemap, if it were possible to add others would be much better
閱讀全部 19 則使用者評論


以下人員參與了開源軟體〈Warm Cache〉的開發相關工作。


將〈Warm Cache〉外掛本地化為台灣繁體中文版


任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄



Bugfix: PHP fatal for _ vs __


Added: merge 3.1.0 and 4.0.0 to account for the PHP fatal countable


Bugfix: PHP fatal on countable in the crawler


Added: Tranlations
Added: Link to autowarmcache.com


Bugfix: PHP static notice


Added: Complete rewrite of the crawler, better compatibility with W3TC (permalink)
Bugfix: Statistics
Bugfix: PHP static notice


Bugfix: Fixed skipping the first item in sitemap(s). Thanks Jeff (@upekshapriya) for reporting
Added: simplexml_load_string function check


Bugfix: PHP notices


Added: Option to disable logging completely (for very large sites) see FAQ how to do so


Bugfix: No gzip compression in ob_start filter
Bugfix: Devision by zero fixed in wp-admin statistics page
Changed: Added lock transient to prevent multiple warm cache calls. You can now call the warm cache every minute 🙂
Added: Override of 20 pages crawl limit via define. See the FAQ on WordPress.org how to do that.


Bugfix: The crawl key was re-set on every view of the admin page
Changed: Caching of results of XML sitemap check is now active


Added: Staggered crawl, so if you have thousands of posts, the crawl will walk/slide over those posts in groups of 20 each
Changed: Deleted all transient options, in favour of custom post type warmcache storage


Added: Debug notices when a sitemap is incorrect


Needs re-work: Bugfix: Transients without expiration (if you have no external non-persistant storage your options table will grow), Props M. Bastian


Added: Toggle flush settings


Added: Transient check for correct syntax of sitemap
Added: Admin notices when sitemap is not present or currupt


Changed: Better handling of pre-checks
Changed: Changed API key change message


Added: Flush to prevent loadbalancer/proxy timeout see https://wordpress.org/support/topic/needs-flush-to-write-buffers-to-prevent-timeouts


Added: Sitemap url override
Changed: Info txt in plugin
Changed: Refresh random token
Added: Cron service link


Bugfix: Extra if/else for zero pages to fix x/0 errors. Thanks to khromov https://wordpress.org/support/topic/division-by-zero-2 https://wordpress.org/support/profile/khromov


Added: Support for sub-sitemaps using < sitemap > format (as used in Beta of Google XML sitemaps). Thanks to Pascal90.de!


Changed: Random password call as mentioned by swanzai https://wordpress.org/support/topic/plugin-warm-cache-how-to-call-this-plugin-correctly


First release