Zen Cart Logo
Forums / General Questions / Is it safe to delete files in the cache folder?

Is it safe to delete files in the cache folder?

Locked

Views: 5,497

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
1 May 2007, 6:55 PM
#1
spbennett avatar

spbennett

Zen Follower

Join Date:
Feb 2007
Location:
Leicester UK
Posts:
230
Plugin Contributions:
0

Is it safe to delete files in the cache folder?

My cache folder seems to have grown to over 3gb since i installed my cart and I only have 5gb webspace which is now completely full.

Can anyone tell me what these files are saved for?
Is it safe to delete them?
Can I limit the size of the folder or set my cart to auto-delete files older than a given time period (i.e. 30 days).

Any help would be much appreciated :smile:

3 May 2007, 2:28 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Is it safe to delete files in the cache folder?

You should be able to empty that directory for files that are not active or current ...

3 May 2007, 5:43 AM
#3
spbennett avatar

spbennett

Zen Follower

Join Date:
Feb 2007
Location:
Leicester UK
Posts:
230
Plugin Contributions:
0

Re: Is it safe to delete files in the cache folder?

Thanks Ajeh.

Anyone know how I can limit the size of the folder with manual pruning?

9 Sep 2008, 4:01 PM
#4
squaregum avatar

squaregum

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Is it safe to delete files in the cache folder?

I've been looking around in the forum and have not found any answers.
I am backing up my site, and I am having problems with my /public_html/cache folde, which is full (around 20 000) of text documents called query_slectsXXXXXXXXXXX (where X is for numbers)
Any idea what this is? Can I go and delete them? Are they important?
TIA

26 Sep 2008, 1:27 PM
#5
dranet avatar

dranet

New Zenner

Join Date:
Mar 2008
Posts:
23
Plugin Contributions:
0

Re: Is it safe to delete files in the cache folder?

I'm having this problem too! My host shut my site down because the cache folder had over 500,000 files in it - and that's just since April!!!

I'm deleting the files, but it's taking me a couple of days. Is there any way to have these pruned automatically or limit the folder somehow?

PLEASE HELP!!!!

26 Sep 2008, 5:34 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Is it safe to delete files in the cache folder?

what kind of files are you finding in there? ie: what are the names of some of them?
If they're log files for payment modules, you should turn off the logging unless you need it for some reason.

26 Sep 2008, 6:46 PM
#7
dranet avatar

dranet

New Zenner

Join Date:
Mar 2008
Posts:
23
Plugin Contributions:
0

Re: Is it safe to delete files in the cache folder?

File names:
query_selects__1209491982.txt
query_selects__1209492008.txt
query_selects__1209492087.txt

Here is a sample of what is in some of the files. They are not all the same, but similar.

I AM HERE
sidebox:

Explain
select configuration_key as cfgKey, configuration_value as cfgValue

                      from product_type_layout;

I AM HERE
sidebox:

Explain
select value
from sessions
where sesskey = 'ef8fb5185aaa5be5b0a1ac13ff7e49c0'
and expiry > '1209491982';

I AM HERE
sidebox:

Explain
select template_dir

                              from template_select where template_language = '0';

I AM HERE
sidebox:

Explain
select template_dir

                              from template_select where template_language = '1';

Any of this make any sense to you?

Thanks,
Tracy

26 Sep 2008, 7:53 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Is it safe to delete files in the cache folder?

Yes -- those are SQL query logs. You'll want to turn off Query Logging in Admin->Configuration->Logging

26 Sep 2008, 7:56 PM
#9
dranet avatar

dranet

New Zenner

Join Date:
Mar 2008
Posts:
23
Plugin Contributions:
0

Re: Is it safe to delete files in the cache folder?

Thank you! I hope that works... we've had almost 10,000 files a day posted to that folder. That's just way too much to handle!

Thanks again!
Tracy