Keyword

Huge number of cache files in cache folders

More
2 months 1 week ago #172363 by Zisis
Zisis created the topic: Huge number of cache files in cache folders
Hello.
I am using latest version of K2 and i have a joomla website with about 8.000 K2 items.
The problem is because of a large number of visitors, a very big number of cache files is produced inside these directories :
1.cache/com_k2
2.cache/com_k2_extended
I am using Joomla conservative caching.
The problem is that my hosting provider has told me that because of the large number of cache files produced the server CPU loads reaches very high numbers, causing problems.
Is there any solution to this?
Maybe reduce caching or disable it only for K2?

Thank you in advance.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 months 1 week ago #172375 by Fotis
Fotis replied the topic: Huge number of cache files in cache folders
Well, it could have been 8.000 Joomla articles and you'd still get as many cache files in /cache/com_content. The problem is not K2 and it's certainly not your 8.000 items. And having 8000 files does not spike CPU usage. It's other factors that do (e.g. bad or no MySQL tuning on your webhost's side).

The problem here is clearly your webhost.

Joomla offers many built in caching options by default, e.g. store cache files in RAM (via APCu or Memcached) if "lots" of file nodes is your webhost's actual problem. So if you have APCu or Memcached available as cache options in Joomla's Global Configuration (it's now set to "File"), switch to those. Then cache files will be created to RAM and occupy zero disk space. If that's not an option, disable caching overall.

But I would strongly recommend moving to another host. Cause what they told you is ridiculous for modern hosting. Siteground, Bluehost, GoDaddy, InMotion and a gazillion other companies offer much better shared hosting. If you're looking for a VM/VPS, look at Contabo in Germany (low prices, excellent specs).

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Moderators: william white

Powered by Kunena Forum