It seems CS-Cart create files in this directory var/cache/registry.
What kind of files is it ? Because our directory has already more than 1 million files and it's not good for our server performance ^^
Is it possible to prevent having so much files created and how ?
Hi
This the main cache folder that is needed from CS-Cart to work properly.
You can if you own a very busy site, empty it via cronjob every few days.
Fotis
Thanks. That was what I was thinking about to do.
But is it normal to have so much files in the cache ? It's really strange because it could make the server crash with error 500 because of this…
well if your site has really a lot of visitors and above all you use filters a lot (lots of filters and features) then yes.
Fotis
A million files is a lot regardless of the store configuration or number of filters for the registry files. Are you running a LOT of languages that are active?
We have a product (EZ Admin Helper) that will let you setup a single cron job that runs every hour that can do various maintenance tasks such as clear the caches, backup the DB, clear all but X days of history from statistics and logs, etc. You can look at the details here and the documentation here.
Well…
the right question is since when are those files created. If they are within a week then yes its a lot. If this is during a month then no. Its normal for a busy site with filters and stuff. I ve Seen it a lot.
How big is the directory in MB?
I think for starters a simple cron job will do the trick. I would keep an eye on thefolder size since last cache clean.
In fact, for testing I rename the registry directory in registry2. In 2 days, the new registry directory was about 20'000 files.
I don't think we have so many filters (in fact 11 filters for 18 features) (you can see our website at www.400coups.ch) and it only run in 1 language. With about 3500 products and 2500 clients, there's not so many visitors and I think it's not the biggest webshop that is running with CS-Cart…
What is the real advantage to have this cache directory full or empty ?
Will test some cron job and will perhaps check and think about your helper tbirnseth. Thank you for advice.
Perhaps I should ask simbirsk to have their point of view about this…
And I forgot… I already disabled the statistics…
The cache is used to cache all the site's settings and other computed (mostly database) values that are frequently used. Rather than making 1000 calls to the DB to get all the core store data available for any page read, the cache is used to store these values and then read with a single read per section or area.
One would have to look at the content of your cache files. The registry cache is critical for performance and the template cache is too.
What version are we talking about? Number of files has increased over the version evolution to better segregate the information based on need/use.
It's actually running with 3.0.6 ULTIMATE. I am working on upgrading to CS4 but it take some time because I need to recreate the template.
Just a question tbirnseth about the Admin Maintenance addon : if I buy it for using with our 3.06 ULTIMATE version, as I am actually working on the upgrade for CS4, I will be able to use my purchase with version 4 ?
[quote]if I buy it for using with our 3.06 ULTIMATE version, as I am actually working on the upgrade for CS4, I will be able to use my purchase with version 4 ?[/quote]
For this addon, yes. it was developed during the transition and was one of my learning projects in understanding V4. So yes, I will honor a V3 purchase of this addon. Just drop me a note or support ticket when you go to V4 and I will send you the V4 archive. Do note that it should be uninstalled and then removed from your system and then install the V4 archive.
Prior upgrades have moved the DB tables for addons forward which breaks them if they use 'lang_code' columns or company_id.
Dear Pascal,
If you have problems with the files in the cache folder (the number of the files depends on the filters and combinations you use, and as I see, you are using a lot of filters), you can swith to another caching method. Years ago, I made a memached module for CS-Cart, but I think it is outdated
Regards,
Istvan
[quote name=‘Pascal’ timestamp=‘1388247567’ post=‘174165’]
In fact, for testing I rename the registry directory in registry2. In 2 days, the new registry directory was about 20’000 files.
I don’t think we have so many filters (in fact 11 filters for 18 features) (you can see our website at www.400coups.ch) and it only run in 1 language. With about 3500 products and 2500 clients, there’s not so many visitors and I think it’s not the biggest webshop that is running with CS-Cart…
What is the real advantage to have this cache directory full or empty ?
Will test some cron job and will perhaps check and think about your helper tbirnseth. Thank you for advice.
Perhaps I should ask simbirsk to have their point of view about this…
[/quote]