• Hi guys,

    I’ve got a website that takes up only 350MB of diskspace on my server. However, ever since I’ve installed two caching plugins it’s hoarding my diskspace like crazy. I don’t have that many visitors (~ 50-100 a day). I think the caching folder increases by 200MB per day. And once it reaches it’s hard limit the website becomes unavailable. Therefor action needs to be taken.

    I’m using both W3 Cache for caching and Autoptimize since the developer of our custom theme didn’t had the time to minify and combine all 42 JS files and 25 CSS files..

    I think they are working aggressively towards each other which causes the incremental of diskspace. However, I don’t want to clear the cache every 1-2 weeks..

    What’s my best bet?

Viewing 6 replies - 1 through 6 (of 6 total)
  • for AO; check wp-content/cache/autoptimize/js (and/or wp-content/cache/autoptimize/css). if there’s many file in one of them, consider changing AO’s config not to aggregate inline JS (and/ or CSS). More info (and alternative solutions) in the FAQ.

    hope this helps,
    frank

    Use cloudflare

    It will not put load on your server and also recommended for blogs and small business

    Thread Starter Sander Schaeffer

    (@blackvibes)

    Hi Frank, thank you for your reply.

    I’ve checked the Autoptimize folder. Both CSS and JS folder only contain 1 file: ‘index.html’. which is both 113 bytes big. The Autoptimize folder itself contains 3800 files though. 3800 files spread across PHP files, .deflate, .gzip and at least 20% of them are .php.none files. Quite strange, honestly. All PHP files are about 3KB each, but all deflate, gzip and .none files are about 200KB each. So that’s taking the diskspace, I’m sure..

    Edit: Oh, I do use aggregate for both CSS and JS, else it doesn’t combine all CSS and JS files. And 65 requests in total for JS and CSS files isn’t that good for your SEO/Load speed. And there is also a shitload of inline-CSS/script in the <head>.

    ah, you’ve turned of the “static files” option, in which case this:

    3800 files spread across PHP files, .deflate, .gzip and at least 20% of them are .php.none files. Quite strange, honestly. All PHP files are about 3KB each, but all deflate, gzip and .none files are about 200KB each.

    is normal, except for the number of files. to solve that (the huge amount of files), look into the option to disable the aggregation of inline code (css and/or js).

    frank

    Thread Starter Sander Schaeffer

    (@blackvibes)

    Hi Frank,

    I did not have option ‘save CSS/JS files as static files’ turned on. .

    I did not have option ‘save CSS/JS files as static files’ turned on. .

    indeed. by default this option is “on” (which means you’ll have .css files in wp-content/cache/autoptimize/css and .js files in wp-content/cache/autoptimize/js), but guess you turned it off.

    having the option on or off does has some impact on the number of files, but 3800 means there is inline JS (or CSS) which is breaking the cache. hence my advice to disable aggregation of inline JS (or CSS).

    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Caching (W3/Autoptimize) takes up my whole server in a few days’ is closed to new replies.