Large number of cache files
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Large number of cache files
Ive just had a warning from my hosting company about an excessive amount of files on the server... it's due to CMSMS tmp/cache folder. There were 25000 files in there. I emptied it but a few hours later its back up to 45mb worth of files. This doesnt seem normal behaviour. Any ideas what might be causing this/how I track down what's causing it?
thanks!
thanks!
Re: Large number of cache files
Can you tell if there is any sub-folder or any particular file name pattern that stands out? 25000+ is not particularly common but there is not much more info for us to be able to help
"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!
* 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!
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Large number of cache files
No, no sub folders. Seemed odd as have never encountered a warning like this before despite running multiple CMSMS websites over the years . Guess I'll just have to keep an eye on it!
Re: Large number of cache files
Out of curiosity, I also had a look into the /tmp/cache folder:
It currently holds 9998 files with timestamps from today and up to 14 days ago.
So I guess there is some kind of 2 week rotation?
It currently holds 9998 files with timestamps from today and up to 14 days ago.
So I guess there is some kind of 2 week rotation?
Re: Large number of cache files
The rotation is whatever setting you have in Global Settings > Advanced Setup > Remove cache files that are older than the specified number of days
Not getting the answer you need? CMSMS support options
Re: Large number of cache files
Right, totally forgot about that. I never touched that setting
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Large number of cache files
ok, Im still having problems with this ... so much so that I cant even look in the cache folder as my FTP software can't list all the files (it stopped at over 100,000 files - and this is in 2 days) and am getting violation warnings from the host due to the large number of files.
Im getting multiple cache files made every minute, with usual looking filenames such as cache_09efac65f81433eb305626f786202a44_244dd35485aea255e06f925f0effa15b.cms
Does anyone know how I can solve this?!
Im getting multiple cache files made every minute, with usual looking filenames such as cache_09efac65f81433eb305626f786202a44_244dd35485aea255e06f925f0effa15b.cms
Does anyone know how I can solve this?!
Re: Large number of cache files
Temporary fix: open CMSMSExt.module.php find *********************** and comment it out...
Note: it is a hack and it is only allowed on the forum because is the developer posting it. It's a temporary fix until next release (not yet ready but almost). It won't affect the site in any way.
The cache files that you are showing are legit and possibly not the issue you are experiencing; the CMSMSExt module has a new feature that is a bit buggy that may fill the temp folder on a sub-folder only for this purpose. It is solved but not yet released as explained above.
Code: Select all
**********************
The cache files that you are showing are legit and possibly not the issue you are experiencing; the CMSMSExt module has a new feature that is a bit buggy that may fill the temp folder on a sub-folder only for this purpose. It is solved but not yet released as explained above.
Last edited by Jo Morg on Tue Oct 29, 2024 3:51 pm, edited 1 time in total.
Reason: Redacted as the hack isn't valid in this case anyway
Reason: Redacted as the hack isn't valid in this case anyway
"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!
* 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!
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Large number of cache files
Thanks - I will try this !
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Large number of cache files
Actually - I dont seem to have this file! Having checked other sites I would find it in modules/CMSMSExt but that folder doesnt exist for this site. The CMS says its v2.2 but Im wondering if this is not the case and something has gone wrong somewhere ... as its running on php5.6 and I thought cmsms v2 was php7 only ...
any ideas what's going on?
Cms Version: 2.2.2
Installed Modules:
AdminSearch: 1.0.4
CGBlog: 1.14.4
CGExtensions: 1.56
CGSimpleSmarty: 2.1.6
CGSmartImage: 1.21.9
CMSContentManager: 1.1.5
CMSMailer: 6.2.14
CmsJobManager: 0.1
DesignManager: 1.1.3
FAQ: 2.1.1
FileManager: 1.6.3
FilePicker: 1.0
FormBuilder: 0.8.1.6
JQueryTools: 1.4.0.3
LISE: 1.3.1
LISEResources: 1.3.1
LISETestimonials: 1.3.1
LISEpartners: 1.3.1
LISEstafflist: 1.3.1
MenuManager: 1.50.3
MicroTiny: 2.2
ModuleManager: 2.1.1
Navigator: 1.0.7
News: 2.51.2
Search: 1.51.2
Config Information:
php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false
Php Information:
phpversion: 5.6.40
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On
Performance Information:
allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 4.18.0-553.16.1.el8_10.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.4.17
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!
any ideas what's going on?
Cms Version: 2.2.2
Installed Modules:
AdminSearch: 1.0.4
CGBlog: 1.14.4
CGExtensions: 1.56
CGSimpleSmarty: 2.1.6
CGSmartImage: 1.21.9
CMSContentManager: 1.1.5
CMSMailer: 6.2.14
CmsJobManager: 0.1
DesignManager: 1.1.3
FAQ: 2.1.1
FileManager: 1.6.3
FilePicker: 1.0
FormBuilder: 0.8.1.6
JQueryTools: 1.4.0.3
LISE: 1.3.1
LISEResources: 1.3.1
LISETestimonials: 1.3.1
LISEpartners: 1.3.1
LISEstafflist: 1.3.1
MenuManager: 1.50.3
MicroTiny: 2.2
ModuleManager: 2.1.1
Navigator: 1.0.7
News: 2.51.2
Search: 1.51.2
Config Information:
php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false
Php Information:
phpversion: 5.6.40
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On
Performance Information:
allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 4.18.0-553.16.1.el8_10.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.4.17
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!
Re: Large number of cache files
Ok then that's a different issue than what I thought.
Too old a version, you should upgrade...
What version is it exactly? (NVM) I just saw it....johnboyuk1 wrote: ↑Tue Oct 29, 2024 3:38 pm he CMS says its v2.2 but Im wondering if this is not the case and something has gone wrong somewhere ... as its running on php5.6 and I thought cmsms v2 was php7 only ...
Too old a version, you should upgrade...
"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!
* 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!
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Large number of cache files
Says 2.2.2
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Large number of cache files
sorry, you mean 2.2.2 is too old? wary of upgrading as not sure on modules that are reliant ... maybe I'll have to give it a go though!
Re: Large number of cache files
Yes, you should consider it, even if you don't immediately go all the way, but there are a few recent versions that should keep you safe for the time being. However a full upgrade should be planned ASAP.johnboyuk1 wrote: ↑Tue Oct 29, 2024 3:46 pm sorry, you mean 2.2.2 is too old? wary of upgrading as not sure on modules that are reliant ... maybe I'll have to give it a go though!
Don't forget to make full backups every step of the way so that you have incremental steps to get back to if needed. It's a bit of work but it is the only safe solution.
"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!
* 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!
-
- Forum Members
- Posts: 222
- Joined: Mon Nov 26, 2018 3:09 pm
Re: Large number of cache files
ok, I'll give it a try!