PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Limiting Files

Quick Cache Plugin. Speeds up WordPress®.

Limiting Files

Postby markfu » July 2nd, 2010, 9:48 am

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?
User avatar
markfu
Registered User
Registered User
 
Posts: 1
Joined: July 2, 2010

Re: Limiting Files

Postby Jason Caldwell » July 7th, 2010, 3:08 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Limiting Files

Postby oliverartur » May 12th, 2011, 4:28 pm

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.
User avatar
oliverartur
Registered User
Registered User
 
Posts: 2
Joined: May 12, 2011

Re: Limiting Files

Postby Jason Caldwell » May 13th, 2011, 4:43 am

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Limiting Files

Postby oliverartur » May 13th, 2011, 3:59 pm

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
User avatar
oliverartur
Registered User
Registered User
 
Posts: 2
Joined: May 12, 2011


Return to Quick Cache Plugin

Who is online

Users browsing this forum: No registered users and 1 guest