Jump to content

[SOLVED] Prestashop Shop eating up disk space


Recommended Posts

I'm hosting a site using prestashop and it has become MASSIVE as in 4GB of disk space being used. It's not particularly massive in terms of the number of products, and I'm baffled as to why it is using up so much disk space (my host has confirmed that it's the prestashop folder which is, itself over 4GB in size). I've checked the image sizes and while some are large in web terms, they're large as in 220KB-500KB (they're not 100MB!) and there aren't thousands of them, only a few dozen.

 

I've asked my host to check where the bulk of the diskspace is being used up and most of it is in the shop/cache/ folder which has a load of subfolders beneath it- therefore what I want to know is, can I safely delete the contents of this /shop/cache/ folder or will this have knock on effects elsewhere? Is there an option in the admin to clear the cache or do I need to do this via filemanager (or other means?)

 

Thanks in advance!

  • Like 1
Link to comment
Share on other sites

Hi swarmer,

Can you please check your tools/smarty folder and delete the contents of the /cache and /compile folders EXCEPT for the index.php file?

 

It's very strange that you would be having this sort of issue, but if those folders don't clear up a good amount of space please feel free to PM me with your FTP login information and I'll check this out further for you.

 

-Mike

  • Like 1
Link to comment
Share on other sites

Thanks for the reply Mike, sorry, I edited my post probably as you were drafting the response to clarify that I now know that the shop/cache/ folder is the issue......(it's 3.8GB in size apparently!!)

 

Inside my shop/cache/ folder I have a folder called /cachefs and this then seems to have subfolders 0-9 and A-Z plus two documents called keyscached and tablescached. There's no index.php file in (directly under /cache/ ) that I can see - am I safe to delete cachefs and all those subfolders?

Link to comment
Share on other sites

I had the same issue with a Prestashop installtion, it is to do the filesystem cache option. It seems to generate massive cache files in the /cache/ folder (not smarty/cache/). I turned the filesystem cache option off and deleted everything in the cache folder and it didnt have any detrimental effects on the store, other than freeing up massive amounts of diskspace.

  • Like 1
Link to comment
Share on other sites

I had the same issue with a Prestashop installtion, it is to do the filesystem cache option. It seems to generate massive cache files in the /cache/ folder (not smarty/cache/). I turned the filesystem cache option off and deleted everything in the cache folder and it didnt have any detrimental effects on the store, other than freeing up massive amounts of diskspace.

Yep, I think this is the issue. It is the shear quantity of files that the cache uses. I can;t use it either. I am sure it must have a detreimental effect on age load speed, but no so i can detect

Link to comment
Share on other sites

Are you using the FileSystem cache? If so:

 

1) Go to BackOffice => Preferences => Performance => Caching (box): Disable "Use cache:"

2) remove the /cache/cachefs folder contents

 

This FileSystem cache is a total fail. Do not use it. Even if you do not change your templates/settings etc., it generates a new cache files without removing the obsolete ones. After some time you just end up with a huge cache/cachefs folder with a lot of files, which slow down your overall store performance and eats your disk space like hell.

  • Like 1
Link to comment
Share on other sites

Hi mingwireless,

If you are deleting the cachefs files, you must be sure to delete everything except the index.php file. Additionally, in your Back Office under Preferences > Performance you should switch your caching system from File System to Memcached.

 

I hope this helps.

 

-Mike

 

Some hosting companies don;t allow memcached - so that leaves us with no caching at all (1&1)

Link to comment
Share on other sites

hi there

 

i want to be sure, /cache/cachefs/ inside this folder only has index.php one file only, not thing else , any idea ?

 

Hi mingwireless,

In that case, there's nothing else to delete within that folder. Have you checked your tools/smarty directory in the cache and compile folders?

 

-Mike

Link to comment
Share on other sites

do i need to do anything with Root/cache/cachefs/ this folder then?

 

Please help to solve this problem , my web server takes too much CPU memory from the Presta template

 

 

thanks

Ming

 

Hi mingwireless

If the cachefs folder is empty other than index.php and the other suggestion I just posted above doesn't work for you, please contact your hosting provider and ask for their assistance in identifying what may be causing you these issues.

 

Once we have that information, hopefully I can help you determine the solution.

 

-Mike

Link to comment
Share on other sites

yes i delete those files only keep the tools/smarty/compile/index.php file

 

do i need to do anything with Root/cache/cachefs/ this folder then?

 

what about will it happened it again, do i have to do it every day?

 

If your hosting provider does not allow you to switch to Memcached, you don't need to clear it every day but you will want to keep an eye on it just to make sure it doesn't get overwhelmed with files again.

 

-Mike

Link to comment
Share on other sites

do you know any proper solution for this problem, i had this problem since i got the 1.4 and the hosting company told me that my account over use the CPU , then they closed my account for while , after now i total delete the 1.4PS to install the fresh 1.4.5 PS , now again its the same problem again only after i installed 2 weeks later,

 

do you thing the web hosting company could solved this problem properly ?

 

Thanks again

Link to comment
Share on other sites

I just took a look at this, and all I can say having never heard of them before now is that you get what you pay for. This definitely appears to be an issue on your hosting provider's end if you've already done all the suggestions above, so you would have to speak with them to get more information.

 

-Mike

Link to comment
Share on other sites

Hi ming,

Those folders will continue to fill every day because that is where your site's cache is stored. As I said, switching hosts is probably your best option at this point because it appears that their servers aren't built to handle PrestaShop. To get more information though, you should call them first to see if there is anything that they can suggest to help your site work better on their hosting.

 

-Mike

Link to comment
Share on other sites

  • 2 months later...

Hi Mike,

My host provider is Hostgator.

I am facing the same problem. I created a post in this forum but no reply yet. My post is below:

 

Hi everyone,

 

Server information

Prestashop version: 1.4.6.2 > friendly URL enabled >.htaccess auto generated.

Server information:Linux #1 SMP Wed Jul 20 19:47:12 MSD 2011 x86_64

Server software version:Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

PHP version:5.2.17

MySQL version:5.1.56

 

 

/public_html/tools/smarty/cachefolders size is:8.7 Gb

After cleaning up cache folder, a few days later its again increasing to 8,9,10 ... gigabyte.

 

Just now, cache folder keeping 9998 files. Most of the file names are the same:

blockcategories^1_1_11446_0^fe3349ea2b215f6536ca4b800bd44473c6d54bba.blockcategories.tpl.php

...

...

 

My Performance settings:

Force compile:No

Cache:Yes

Use cache:No

 

This causes cpu + memory overload problem. and refers to directly host problem.

And those 9998 files make my web site slower and slower... Deleting them everyday is not a good idea

Please help me about these cache problem. Why always increasing to gigabytes. How do I get rid of that files?

 

Regards

 

post-101194-0-73077100-1327412433_thumb.png

small-logo.png

Link to comment
Share on other sites

  • 1 year later...

In order to save quiete some disk space, can I also delete the content of the "upload" folder, and the "MyImg" folder after loading all product images with ftp and import data with CSV as they seem to duplicate all images to the "img" folder?

 

Many thanks in advacne

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

hi

i use Prestashop 1.6.0.9 and i also have the same problem.

please help me to do step by step. i suppose first i should delete the contents of CASHEFS folder except than index.php and then after that what should i do.

please help me

tnx

Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...
  • 3 months later...

I also encountered similar problems as you. You can take a look in Cpanel, the Disk Usage section, you will see the hidden Files in subdirectories, it occupies a huge space after a period of use. You scroll down below, in the Directory, select the item cagefs. Then select all in the folders, and delete all. Similar to the tmp folder, too. Hope will be useful to you.

ksQkryz.jpg

Link to comment
Share on other sites

×
×
  • Create New...