Title: Cache size increase
Last modified: October 21, 2024

---

# Cache size increase

 *  Resolved [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/)
 * Hi,
 * Not a developper. Trying to manage a non-profit WP site as a volunteer 😅
 * We have been using WP Super Cache since the beginning of the time. Since last
   WP Super Cache update, the cache size has increased drastically. In one point,
   it maxed out our available shared server space at the ISP. That was 8GB of cache
   I had to delete to bring the site back.
 * Currently I must clear content cache from the UI every other day to avoid site
   down. Any feedback would be much appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcache-size-increase%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/cache-size-increase/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cache-size-increase/page/2/?output_format=md)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18091468)
 * The best thing to do is set the garbage collection timeout to something smaller.
   Perhaps to an hour, and set it to check for expired pages every 600 seconds.
 * That will ensure that cached pages are cleared out quite often.
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18091530)
 * Thank you for your response. Since my GUI is in JP locale, I was wondering if
   this is what you meant:
 * [Screenshot](http://a-no-ne.com/temp/WP%20Super%20Cache%20%E2%80%B9%20JazzTokyo%20—%20WordPress%202024-10-23%2011-43-33.png)
    -  This reply was modified 1 year, 7 months ago by [madflute](https://wordpress.org/support/users/madflute/).
    -  This reply was modified 1 year, 7 months ago by [madflute](https://wordpress.org/support/users/madflute/).
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18092442)
 * That’s almost right. Make the first one 3600. Change the second option back to
   the “How often to check for stale cached files” and make it 600.
 * Or make both smaller, but the second figure should be smaller than the first 
   one by a large margin, so it checks more often for stale files.
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18093504)
 * Hi [@donncha](https://wordpress.org/support/users/donncha/)
 * So, 3600/600 was how it was set before I made the change. I think that was the
   default since I didn’t change that. It had been working fine until recently.
 * I just deleted the content cache from the WP Super Cache UI, and that gained 
   5+GB server space. The last time I deleted was 2 days ago. This seems to be excessive
   and it wasn’t like this before. Any idea?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18102841)
 * Sorry for not getting back to you sooner. That’s really strange. It might be 
   worth looking at what sort of files are in your cache. While there is a “Contents”
   page in the plugin, it will be faster if use some sort of file manager or sftp
   client to examine what’s in wp-content/cache/supercache/ and it’s sub directories.
 * Maybe some plugin on your site has created an infinite loop, which Google or 
   some other bot keeps downloading, and then the plugin caches those pages.
 * The other thing to do, is make sure that the cleanup job is scheduled correctly.
   Download the [WP Control](https://wordpress.org/plugins/wp-crontrol/) plugin.
   Go to Tools->Cron Events in wp-admin. Search for the string “wp_cache_gc” and
   if it’s working properly it will tell you that it will run in the next hour.
 * If it’s not running, and there are no errors showing, deactivate WP Super Cache
   and then reactivate it, and save the garbage collection settings on the settings
   page, just to make sure it’s set up again. Check the Cron Events page again. 
   Hopefully it’ll be there this time.
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18104048)
 * Hi [@donncha](https://wordpress.org/support/users/donncha/)
 * Thank you for your response. I am not sure how to figure this out. As far as 
   I can see, there isn’t anything suspicious. They are HTML files, and tons of 
   them. What’s puzzling is that these are dated articles, and I don’t think they
   are frequently accessed files.
 * [Screenshot](https://a-no-ne.com/temp/cPanel%20-%20Disk%20Usage%202024-10-30%2000-54-45.png)
 * I do have WP Control installed but I was not sure if I know how to use it. I 
   just took a look at it, and found ‘wp_cache_gc’ scheduling is set to “Do Not 
   Repeat”. Do I need to change this? Still wondering why this issue surfaced only
   a couple of months ago. Thank you for your help.
    -  This reply was modified 1 year, 7 months ago by [madflute](https://wordpress.org/support/users/madflute/).
    -  This reply was modified 1 year, 7 months ago by [madflute](https://wordpress.org/support/users/madflute/).
 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18114055)
 * Hi [@donncha](https://wordpress.org/support/users/donncha/) –
 * Any other ideas here?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18118669)
 * Is the garbage collection still set to 3600/600? Can you manually clear out the
   cache, and check the cache directory to make sure everything (or at least, most
   of everything) was deleted.
 * Then wait 60-70 minutes and look in the cache directory again and check if things
   were deleted.
 * If, after only an hour, the contents of the directory is huge again, it might
   be worth changing the garbage collection to 600/60 or maybe even 300/60 so files
   are deleted more quickly.
 * If it looks like no files have been deleted, it might be a problem with PHP deleting
   so many files and timing out. 7034MB of files is excessive, if your GC is set
   to 3600/600. Reducing the time limit should help there.
 * When you look at the files generated in the cache directories, are they index-
   https.html and maybe index-https.html.gz ? Or do they have a long random string
   of letters?
 * You could also enable debugging in the plugin and visit the site in a private
   browser and look at the logs to see if they show you any problems.
    -  This reply was modified 1 year, 7 months ago by [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/).
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18120632)
 * Hi [@donncha](https://wordpress.org/support/users/donncha/)
 * I changed to 600/60 last night. The cache size is 500MB overnight. They are all
   html, and not gz nor random string in any file names.
 * Can you respond to my question: ‘wp_cache_gc’ scheduling is set to “Do Not Repeat”—
   Is this correct?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18133585)
 * > Can you respond to my question: ‘wp_cache_gc’ scheduling is set to “Do Not 
   > Repeat” — Is this correct?
 * Yeah, that’s fine. The garbage collection system schedules the next job after
   it’s finished the current one.
 * Is the cache directory still 500MB, or has it rapidly increased in size?
 * When you go into the cache directory, are there thousands of files, or about 
   the same number of files to the number of pages on your site? Do the directories
   they’re in match those pages? Do the cached html files look inflated by anything
   or do they match the size of pages on your site?
 * 500MB seems a lot, especially if the GC is working and clearing out files that
   are older than an hour. If you check the “Email me when the garbage collection
   runs” checkbox, the site should send you an email every ten minutes saying it’s
   working. That might be worth doing for a small bit to make sure it’s ok.
 * If there are thousands of files, can you see if any are older than an hour? A
   few minutes over an hour is ok, but if there are files that are a few hours old
   then garbage collection isn’t working.
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18136605)
 * Hi [@donncha](https://wordpress.org/support/users/donncha/)
 * I enabled the garbage collectrion notification but I have never received the 
   notification. That explains this. The garbage collection is not running. What
   should I do?
 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18139208)
 * Hi [@madflute](https://wordpress.org/support/users/madflute/) –
 * Can you try manually running the garbage collection? You can use a plugin like
   [https://wordpress.org/plugins/wp-crontrol/](https://wordpress.org/plugins/wp-crontrol/)
 * Does it work when triggered manually?
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18140221)
 * Hi [@lastsplash](https://wordpress.org/support/users/lastsplash/)
 * Do I understand correctly you want me to try setting wp_cache_gc to hourly? Or
   you are talking about something else to force running the garbage collector hourly?
   If that the case, can you tell me what I look for under the cron Event page?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18141335)
 * Since you have WP Control installed, and you can see wp_cache_gc show up there
   in “Cron Events”, set the GC Timer to 60 seconds and keep reloading the WP Control
   cron events pages to see if wp_cache_gc triggers. Is it scheduled again afterwards?
 * I suspect some other plugin updated and is causing problems. You might also check
   your PHP error logs. If another plugin is causing a fatal error when it runs 
   a Cron job, it might be stopping the garbage collection from running. You could
   also disable other plugins one-by-one, and then go to WP Control and click on“
   run now” under the wp_cache_gc job. That might help track down the problem.
 * You might need to contact your hosting support to get this fixed. Someone with
   access to your site will probably be able to fix this quickly.
 *  Thread Starter [madflute](https://wordpress.org/support/users/madflute/)
 * (@madflute)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cache-size-increase/#post-18141459)
 * Hi [@donncha](https://wordpress.org/support/users/donncha/)
 * Yesterday, I set wp_cache_gc to run every hour. It seems to be working now. The
   cache size has been constantly 667MB since then. However, I am still not getting
   the email notification.
 * I just changed back from 600/60 to 3600/600, the original recomended setting.
   cron Event/wp_cache_gc is still set to every hour. I will see if this works.

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/cache-size-increase/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cache-size-increase/page/2/?output_format=md)

The topic ‘Cache size increase’ 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/)

 * 31 replies
 * 5 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/cache-size-increase/page/2/#post-18214226)
 * Status: resolved