• Resolved bobjones

    (@bobjones)


    My site crashed this morning, and it turned out the offender was an 18GB WP-Optimize cache.

    How did this happen, and what settings can I adjust to prevent this from occurring again?

    Also, do the plugin settings allow me to quickly view the current cache size?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    The cache size is indicated in the settings:

    WP-Optimize cache settings screenshot

    My site crashed this morning, and it turned out the offender was an 18GB WP-Optimize cache.

    Would you mind explaining in what way it crashed? A large cache shouldn’t crash your site. It could fill up disk space, and prevent you from uploading, but not “crash” per say.

    How did this happen, and what settings can I adjust to prevent this from occurring again?

    How many pages / posts do you have? Many posts and pages could explain the size of the cache.

    You may want to turn off the preloader scheduleing, as that will recreate the cache frequently, filling up the space again.

    Not preloading will help limit the cached files to the most visited pages.

    Marc

    Thread Starter bobjones

    (@bobjones)

    Thanks for your reply, Marc.

    My webhost reported the 18GB cache filled up the free space on the server where my site resides and crashed it.

    I have disabled pre-loading, per your recommendation. I will point out that the cache size had already re-grown — in a single day — to more than 3GB.

    My site has about 200 posts and a few thousand optimized images. The database is about 23 MB in size.

    200 posts shouldn’t produce 18GB of cache.

    Could you share your site’s URL here?

    Next time the cache has grown to a few GB, could you use FTP (or the file browser on cPanel, or an other solution of your choice) to look at the contents of wp-content/cache/wpo-cache? The files are organised per url, so you should be able to see what’s filling up the cache.

    Marc.

    Thread Starter bobjones

    (@bobjones)

    Marc:

    A day later, the site cache is more than 8 GB in size.

    I examined the wp-cache folder, which holds individual folders for each post.

    A typical folder shows:
    index.html 1,018,355 html document
    index.html.gz 238,446 gzip file

    I also have 320 events (All-In-One Event Calendar), each taking up about 1.5 MB of cache space, along with WordPress pages, tags and categories.

    Then there’s a “calendar” folder likely related to All-In-One that has numerous entries. That calendar is likely taking up a lot of cache space.

    So, we have a lot of folders, taking up a lot of space. Mind you, this is after I turned off pre-loading and set the cache lifespan to 24 hours.

    Unfortunately, I can’t share the url here.

    Thanks again!

    • This reply was modified 6 years, 5 months ago by bobjones.
    • This reply was modified 6 years, 5 months ago by bobjones.
    • This reply was modified 6 years, 5 months ago by bobjones.

    Here’s a screenshot of a typical cache structure:

    screenshot

    So a page has typically 2 cache files, or a few more, depending on the configuration.

    Are you saying that you have “index.html 1,018,355 html document” in each page folder?? Or is that the total in wpo-cache.

    Also do you have a folder such as wpo-cache/yourdomain.com/wp-json?

    And if you do what is its size?

    Did you add any custom configuration to WP-Optimize, using some of the available filters?

    Thread Starter bobjones

    (@bobjones)

    Each folder has the two files — one html and one gzip.

    I have no wp-json folder. However, I’ve flushed the cache and turned off WP-Optimize caching, so that may have removed this folder, if it existed.

    For now, I’ve switched over to WP Super Cache.

    • This reply was modified 6 years, 5 months ago by bobjones.

    Ok, thanks. Yes disabling WP-Optimize caching will empty the cache.
    An other question, how many records are there in the “posts” table in the database?

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

The topic ‘Site crashed; cache size is 18GB’ is closed to new replies.