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:
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 ...
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?
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!!!!
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.
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
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
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