Large number of cache files

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
johnboyuk1
Forum Members
Forum Members
Posts: 222
Joined: Mon Nov 26, 2018 3:09 pm

Re: Large number of cache files

Post by johnboyuk1 »

I went halfway and tried 2.2.8 - still got the same problem. Ive never had any trouble with any of these versions of CMSMS before. What could be causing all these cache files, had another 15,000 produced in last 16 hours.

I know an SEO person has been doing things with the site, Im just wondering if theres something theyve added/changed that could cause this, no idea what. ...
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1961
Joined: Mon Jan 29, 2007 4:47 pm

Re: Large number of cache files

Post by Jo Morg »

I don't think I ever had such an issue... without taking a look at it, hands on, it's impossible to determine. If you want me to take a look PM me, without any compromise.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
blahblahwhatever
Forum Members
Forum Members
Posts: 10
Joined: Fri Dec 30, 2022 3:32 pm

Re: Large number of cache files

Post by blahblahwhatever »

I had something like that... don't remember the solution : )
Update, updating plugins... things like that...
johnboyuk1
Forum Members
Forum Members
Posts: 222
Joined: Mon Nov 26, 2018 3:09 pm

Re: Large number of cache files

Post by johnboyuk1 »

ok thanks - Ive tried a CMSMS update - a few versions newer, but that didnt fix. Maybe I'll check plugins. As Ive set every page to 'not cache' but its still producing 1000s of cache files
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1715
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Large number of cache files

Post by DIGI3 »

Does looking at the cache files themselves in a text editor give any clues?
Not getting the answer you need? CMSMS support options
johnboyuk1
Forum Members
Forum Members
Posts: 222
Joined: Mon Nov 26, 2018 3:09 pm

Re: Large number of cache files

Post by johnboyuk1 »

Not that I can tell. Theyre not all the same. But I get 3-10 cache files produced every single minute
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1715
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Large number of cache files

Post by DIGI3 »

Are they just general page templates, or from a module, etc? Do you have Smarty Caching enabled perhaps?
Not getting the answer you need? CMSMS support options
johnboyuk1
Forum Members
Forum Members
Posts: 222
Joined: Mon Nov 26, 2018 3:09 pm

Re: Large number of cache files

Post by johnboyuk1 »

Not sure, here are the first few lines from a random 4 files.

Code: Select all

__SERIALIZED__O:16:"cms_content_tree":3:{s:17:"cms_tree_parent";N;s:15:"cms_tree_tags";N;s:19:"cms_tree_children";a:14:{i:0;O:16:"cms_content_tree":3:{s:17:"cms_tree_parent";r:1;s:15:"cms_tree_tags";a:3:{s:2:"id";s:1:"1";s:5:"alias";s:4:"home";s:6:"active";s:1:"1";}s:19:"cms_tree_children";N;}i:1;O:16:"cms_content_tree":3:{s:17:"cms_tree_parent";r:1;s:15:"cms_tree_tags";a:3:{s:2:"id";s:2:"42";s:5:"alias";s:8:"about-us";s:6:"active";s:1:"1";}s:19:"cms_tree_children";a:12:{i:0;O:16:"cms_content_tree":3:

Code: Select all

_SERIALIZED__a:12:{i:0;a:8:{s:8:"event_id";s:2:"56";s:8:"tag_name";N;s:11:"module_name";s:13:"CmsJobManager";s:10:"originator";s:4:"Core";s:10:"event_name";s:17:"ModuleUninstalled";s:13:"handler_order";s:1:"1";s:10:"handler_id";s:1:"1";s:9:"removable";s:1:"0";}i:1;a:8:{s:8:"event_id";s:2:"46";s:8:"tag_name";N;s:11:"module_name";s:6:"Search";s:10:"originator";s:4:"Core";s:10:"event_name";s:15:"ContentEditPost";s:13:"handler_order";s:1:"1";s:10:"handler_id";s:1:"2";s:9:"removable";s:1:"0";}i:2;a:8:

Code: Select all

__SERIALIZED__a:25:{i:0;a:7:{s:11:"module_name";s:11:"AdminSearch";s:6:"status";s:9:"installed";s:7:"version";s:5:"1.0.4";s:10:"admin_only";s:1:"0";s:6:"active";s:1:"1";s:17:"allow_fe_lazyload";s:1:"1";s:20:"allow_admin_lazyload";s:1:"1";}i:1;a:7:{s:11:"module_name";s:6:"CGBlog";s:6:"status";s:9:"installed";s:7:"version";s:6:"1.14.4";s:10:"admin_only";s:1:"0";s:6:"active";s:1:"1";s:17:"allow_fe_lazyload";s:1:"0";s:20:"allow_admin_lazyload";s:1:"1";}i:2;a:7:

Code: Select all

a:3:{i:0;i:1730718177;i:1;b:0;i:2;a:41:{i:0;i:41;i:1;i:1;i:2;i:42;i:3;i:33;i:4;i:88;i:5;i:36;i:6;i:86;i:7;i:40;i:8;i:58;i:9;i:80;i:10;i:84;i:11;i:85;i:12;i:91;i:13;i:46;i:14;i:44;i:15;i:43;i:16;i:37;i:17;i:60;i:18;i:45;i:19;i:62;i:20;i:64;i:21;i:65;i:22;i:82;i:23;i:87;i:24;i:89;i:25;i:47;i:26;i:79;i:27;i:34;i:28;i:35;i:29;i:51;i:30;i:52;i:31;i:53;i:32;i:54;i:33;i:55;i:34;i:56;i:35;i:59;i:36;i:61;i:37;i:63;i:38;i:83;i:39;i:90;i:40;i:78;}}
That last one, there are perhaps more of so dont know if they are the issue ones? eg I downloaded a random 8 files. half looked like the last one above
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1961
Joined: Mon Jan 29, 2007 4:47 pm

Re: Large number of cache files

Post by Jo Morg »

I did have some time to look at the files, and they are legit CMSMS cache files. In a site with a high number of hits I should expect the cache files to be quite high, in particular if there is dynamic content rather then static.

From my assessment:
- no unusual modules;
- no particularly unusual template or page content from the pages I sampled just to look;
- not a particularly big site in terms of number of pages;
- no apparent hacks or viruses and the files that I could see look legit;
- nothing really noticeable on the admin log (except for server constraints/limits);

So, unless I'm mistaken, this is normal, just a server with a low number of inodes limit, as it seems.

Note: this was also communicated with the OP by PM.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
johnboyuk1
Forum Members
Forum Members
Posts: 222
Joined: Mon Nov 26, 2018 3:09 pm

Re: Large number of cache files

Post by johnboyuk1 »

Thanks Jo

Re the server with low limit... it was hitting 150,000 files when I was getting the warnings, that does seem a lot?!

Ive set the cache to clear after 1 day now, so hopefully that will keep it within reasonable limits and they will clear ok

I appreciate the time you took
Post Reply

Return to “CMSMS Core”