Page 1 of 1
Limiting Files
Posted:
July 2nd, 2010, 9:48 am
by markfu
I have noticed that on caching plugins like WP-Cache, which I used to use and now Quick Cache, I quickly get in "trouble" with my host for having too many files and hogging resources. I had discovered with WP-Cache I had a folder with 182,000 files!
What setting do I change to control the population of the cache folder?
Re: Limiting Files
Posted:
July 7th, 2010, 3:08 pm
by Jason Caldwell
Thanks for your inquiry.
Those are great questions.
A cache with 182K files is definitely way out of control.
I'm assuming that your site does not actually have 182K pages on it?
I can only think of two reasons why that would happen.
1. If your site is using un-friendly Permalinks, where every URL contains .../?something=something then a bot could hit your site; and tag on session IDs, or other query string variables that would ultimately create 182K variations; out of just a few hundred actual links. ~Not good.
The solution in this case, is to set:
Quick Cache -> GET Requests = True ( Don't Cache )
( that's already the default setting ).
2. If you're using a Custom MD5 Version Salt, that is designed to create multiple variations of the cache, where there is a different variation for every single HTTP_USER_AGENT, as one example... you could end up creating so many different variations, that you'd be instructing Quick Cache to create 1000's of cache files. ~Also, not good. The solution in this case, is to seek assistance from a WP Developer, or a PHP programmer. You should only use a Custom MD5 Version Salt if you know what you're doing.
You'll also want to set a reasonable Expiration Time.
The default Quick Cache setting is 3600 seconds ( 3600 = 1 hour ). It you bumped that up to a year or something outrageous, you could eventually end up with a huge cache directory.
Re: Limiting Files
Posted:
May 12th, 2011, 4:28 pm
by oliverartur
Hi, in my case my hosting provider limits the number of files per folder that can be created to 3300 or less.
is there some way to crete the cache in subfolders of 3000 files each?
if yes please tell me how or if this can be done as a small feature request (USD$ 50).
I really need this because my blog has more than 14000 posts and the plugin is caching only 3300 posts.
I'll be waiting for your reply.
Regards,
Oliver.
Re: Limiting Files
Posted:
May 13th, 2011, 4:43 am
by Jason Caldwell
Hi Oliver. Thanks for the great suggestion.
I'll see what I can do about this in the next release.
I'm currently unavailable at this time, due to workload. But I'll definitely add this to the list.
Re: Limiting Files
Posted:
May 13th, 2011, 3:59 pm
by oliverartur
Thankyou Jason for your soon reply.
Please keep me updated on this future feature. If needed, please send me the payment link in order to send you the money if you maybe have time to do the the feature request a little soon.
Best regards,
Oliver