swarmer Posted November 14, 2011 Share Posted November 14, 2011 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! 1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 14, 2011 Share Posted November 14, 2011 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 1 Link to comment Share on other sites More sharing options...
swarmer Posted November 14, 2011 Author Share Posted November 14, 2011 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 More sharing options...
jhnstcks Posted November 14, 2011 Share Posted November 14, 2011 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. 1 Link to comment Share on other sites More sharing options...
swarmer Posted November 14, 2011 Author Share Posted November 14, 2011 PS. tools/smarty and tools/cache don't have anything in them apart from the index.php files. Link to comment Share on other sites More sharing options...
swarmer Posted November 14, 2011 Author Share Posted November 14, 2011 Thanks Jhn I think I'm going to give that a go then. Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2011 Share Posted November 14, 2011 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 More sharing options...
swarmer Posted November 14, 2011 Author Share Posted November 14, 2011 I just turned off caching via filesystem and the disk space used instantly fell from 4GB to 200MB so we have a solution! Thanks for all the input Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted November 14, 2011 Share Posted November 14, 2011 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. 1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 14, 2011 Share Posted November 14, 2011 Hi swarmer, Just to be safe, I checked with our dev team, and yes, you should be fine deleting the cachefs files and then disabling cachefs. Please let me know if this works for you. -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 14, 2011 Share Posted November 14, 2011 Well once again, it looks like I was a little too slow to pull the trigger on my post , but I'm glad you were able to resolve this. I'll go ahead and mark this is as solved for you. -Mike Link to comment Share on other sites More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 hi i have the same problem , do i need to delete the root/cache folder? can i do that? or just delete the /cache/cachefs/ index.php files? Thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 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 Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 Some hosting companies don;t allow memcached - so that leaves us with no caching at all (1&1) Hi haylau, In that case, you will need to be very diligent in deleting your cachefs files, because as you can see they can pile up in the background without you ever even realizing it. -Mike Link to comment Share on other sites More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 hi there i want to be sure, /cache/cachefs/ inside this folder only has index.php one file only, not thing else , any idea ? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 yes i checked that and there have a lot of stuff there, do i delete them all files from the fold of cache and compile folders? Link to comment Share on other sites More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 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 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 yes i checked that and there have a lot of stuff there, do i delete them all files from the fold of cache and compile folders? Yes, go ahead and delete everything in those folders except index.php. -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 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? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 thanks again, what about Root/cache/cachefs/ this folder then? do i need to do anything with it? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 thanks again, what about Root/cache/cachefs/ this folder then? do i need to do anything with it? Nothing at all right now, but in the future that is where you need to look out for lots of files. -Mike Link to comment Share on other sites More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 What hosting company do you use? This is not normal for a PrestaShop site. -Mike Link to comment Share on other sites More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 hi i am using the SUNDOG LiquidNet Ltd. hosting Company Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 hi i am using the SUNDOG LiquidNet Ltd. hosting Company Do they have a website? None of us here have ever heard of them, and when I Google the company, believe it or not you are pretty much the only relevant result that comes up. Have you considered switching hosting providers? -Mike Link to comment Share on other sites More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 you can check by LiquidNet Ltd from google you can find them Link to comment Share on other sites More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 LiquidNet Ltd Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
mingwireless Posted November 16, 2011 Share Posted November 16, 2011 i just check back again for the /tools/smarty/cache/ and tools/smarty/compile/ these a lot of files again only delete after one hour any suggestions ? please i don't that we need to site down and keep deleting the cache files . Thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
Peda Posted January 24, 2012 Share Posted January 24, 2012 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 Link to comment Share on other sites More sharing options...
AnnaM Posted May 22, 2013 Share Posted May 22, 2013 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 More sharing options...
marcolipe Posted February 21, 2015 Share Posted February 21, 2015 Prestashop 1.6.0.11 in Siteground and i have the same problem i must delete the cachefs contents every few days more thne 100.000 files there eatch few days ;( Link to comment Share on other sites More sharing options...
alikh1360 Posted March 8, 2015 Share Posted March 8, 2015 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 More sharing options...
Simri Posted June 19, 2015 Share Posted June 19, 2015 Prestashop team, Can anyone help me how to move social icons (The Follow Us Icons) to the footer section, between My Account and Store Information (prestashop 1.6) Thanks Link to comment Share on other sites More sharing options...
mlatushko Posted November 6, 2015 Share Posted November 6, 2015 My site generates empty folders too. I'm using local hosting by Xampp (660k folders) and dedicated mchost.ru (66k folders, 2.8Gb). Link to comment Share on other sites More sharing options...
duyliem2222 Posted March 2, 2016 Share Posted March 2, 2016 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. Link to comment Share on other sites More sharing options...
Recommended Posts