Title: Empty cache directories
Last modified: January 14, 2023

---

# Empty cache directories

 *  Resolved [Wegwarte](https://wordpress.org/support/users/wegwarte/)
 * (@wegwarte)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/)
 * I’m using Preolad (every hour), however sometimes it happens that all the cache
   directories (/wp-content/cache/supercache/mydomain.com/*) are empty and all directories
   have the same time stamp. The static HTML file is regenerated when the page is
   opened in the browser, but how can it be that it was deleted/missing?
 * Perhaps the site was temporarily not available during the Preload process (which
   I don’t know), but to my understanding, an existing HTML file should only be 
   deleted if the new one could be retrieved successfully.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16383070)
 * Hi [@wegwarte](https://wordpress.org/support/users/wegwarte/) –
 * What are your garbage collection settings? I am wondering if the two are conflicting.
 *  Thread Starter [Wegwarte](https://wordpress.org/support/users/wegwarte/)
 * (@wegwarte)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16383346)
 * The garbage collection was deactivated (0 seconds). And in the garbage collection
   section of the settings, there was a warning that supercache files aren’t removed
   because preload is activated.
 * Meanwhile I’m using a bash script to rebuild the cache files for all posts automatically
   every hour (iterating through the post URLs from the sitemap.xml and calling 
   wget on each URL).
 *  [Daniel](https://wordpress.org/support/users/ihenetudan/)
 * (@ihenetudan)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16389338)
 * Hi there,
 * I’m honestly not sure why that’s happening. It could be that the preloading process
   is encountering an error while trying to access the pages. This could be due 
   to a temporary issue with the site or the server.
 * It could also be that the cache directories are being deleted by another process
   or plugin. Some other plugin or process on your website could be removing the
   cache files.
 * Note that unless your site is particularly slow, preloading shouldn’t be necessary
   as visits to the site will naturally result in caches of those most visited parts
   of the site.
 *  Thread Starter [Wegwarte](https://wordpress.org/support/users/wegwarte/)
 * (@wegwarte)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16391249)
 * Well, maybe it’s a server issue, but I didn’t see this problem with an other 
   cache plugin. When the issue occured, no other cache plugin was installed which
   could have interfered with WP Super Cache.
 * I need a preloaded cache because my site is really slow. Without cached pages,
   loading a page took 5 seconds sometimes; with cache (static HTML files) only 
   fractions of a second. Maybe this was the reason my site wasn’t found by Google,
   while another site without WordPress & PHP & DB on the same server is well indexed,
   even without any special SEO.
    -  This reply was modified 3 years, 4 months ago by [Wegwarte](https://wordpress.org/support/users/wegwarte/).
 *  [Bruce (a11n)](https://wordpress.org/support/users/bruceallen/)
 * (@bruceallen)
 * Happiness Engineer
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16403573)
 * Hi [@wegwarte](https://wordpress.org/support/users/wegwarte/)
 * Have you by chance disabled wp-cron? Sometimes sites recommend doing this as 
   a way to get better performance out of a server, but doing so would mess with
   WP Super Cache.
 * The other possibility is an issue that we’re looking into here:
 * [https://github.com/Automattic/jetpack/pull/28545](https://github.com/Automattic/jetpack/pull/28545)
 * A patch is being prepared for the issue described there, which seems similiar
   to what you are experiencing.
 *  Thread Starter [Wegwarte](https://wordpress.org/support/users/wegwarte/)
 * (@wegwarte)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16404434)
 * I haven’t disabled wp-cron by inserting “define(‘DISABLE_WP_CRON’, true);” into
   the wp-config.php file, but since my site doesn’t have many visits, and my server
   doesn’t provide cron jobs, I set up a cron job on a local Raspberry Pi to trigger
   wp-cron every minute:
 *     ```wp-block-code
       * * * * * wget -O- https://mydomain.com/wp-cron.php > /dev/null
       ```
   
 *  Plugin Support [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16407365)
 * If you haven’t disabled wp-cron, then it’s likely the issue that Bruce linked
   to above may be causing this. That should hopefully be fixed in v1.9.3, so let’s
   see if that helps.
 *  Plugin Contributor [Mark (a11n)](https://wordpress.org/support/users/thingalon/)
 * (@thingalon)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16427754)
 * Hi [@wegwarte](https://wordpress.org/support/users/wegwarte/) – we’ve just released
   Super Cache 1.9.3, which includes a fix for what I believe is the underlying 
   cause of the issue you’re having.
 * Please try updating to 1.9.3, then visit the “Preload” page in your Super Cache
   settings. Click “Save Settings”. Just hitting that button should double-check
   your cron-job is set up.
 * Please let us know if that solves the issue for you – or if it continues.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Empty cache directories’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

## Tags

 * [deleted](https://wordpress.org/support/topic-tag/deleted/)
 * [empty](https://wordpress.org/support/topic-tag/empty/)
 * [preload](https://wordpress.org/support/topic-tag/preload/)

 * 8 replies
 * 6 participants
 * Last reply from: [Mark (a11n)](https://wordpress.org/support/users/thingalon/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/empty-cache-directories/#post-16427754)
 * Status: resolved