alcooltan Posted September 11, 2012 Share Posted September 11, 2012 Hello all, I'm currently running a prestashop 1.4 site with caching turned on (file system caching). Unfortunately, my site has been down a couple of times within 3 weeks of being up The reason, my VPS is hitting the inode limit of 1,000,000. Despite of the inode limit increase to 1,500,000 I still hit the new limit within a week. They have now temporarily increased my limit to 2,000,000. The culprit is the massive number of cache files created. I can think of several ways to address this issue, but would like you guys who are experienced in this to shed your light on this issue. Here goes: 1. Have the cache files deleted every 2 days. I don't know what the effect of deleting the cache files is, while users might still be online & using the site. Will they experience any cart loss, for example? 2. Ditch the file system caching, and use the memcache instead. I'd like to know if memcache is better at caching prestashop compared to file system method. Is it? 3. Find a new VPS plan from a different vendor who doesn't limit the inodes. I'm currently using hostgator. Do you know a better vendor than hostgator? Please let me know what you guys think. Any pointers would be appreciated. Thanks! Link to comment Share on other sites More sharing options...
aiynoon Posted January 13, 2014 Share Posted January 13, 2014 Hello all, I'm currently running a prestashop 1.4 site with caching turned on (file system caching). Unfortunately, my site has been down a couple of times within 3 weeks of being up The reason, my VPS is hitting the inode limit of 1,000,000. Despite of the inode limit increase to 1,500,000 I still hit the new limit within a week. They have now temporarily increased my limit to 2,000,000. The culprit is the massive number of cache files created. I can think of several ways to address this issue, but would like you guys who are experienced in this to shed your light on this issue. Here goes: 1. Have the cache files deleted every 2 days. I don't know what the effect of deleting the cache files is, while users might still be online & using the site. Will they experience any cart loss, for example? 2. Ditch the file system caching, and use the memcache instead. I'd like to know if memcache is better at caching prestashop compared to file system method. Is it? 3. Find a new VPS plan from a different vendor who doesn't limit the inodes. I'm currently using hostgator. Do you know a better vendor than hostgator? Please let me know what you guys think. Any pointers would be appreciated. Thanks! I am having the same problem. How did you solve it? Any suggestions anyone? How to delete these files? Link to comment Share on other sites More sharing options...
prestashopninja Posted January 13, 2014 Share Posted January 13, 2014 Hi, IMHO, - Memcache is always a better choice compared with file system cache. Since you have a VPS, you can install it or have it installed on your server. - If you will decide to keep up with FS cache instead, a logical approach would be to delete cache files older than a given time interval -say, files older than seven days- This can be done with a custom module to delete such files, acting as a "poor man's cron". Link to comment Share on other sites More sharing options...
aiynoon Posted January 13, 2014 Share Posted January 13, 2014 Hi, IMHO, - Memcache is always a better choice compared with file system cache. Since you have a VPS, you can install it or have it installed on your server. - If you will decide to keep up with FS cache instead, a logical approach would be to delete cache files older than a given time interval -say, files older than seven days- This can be done with a custom module to delete such files, acting as a "poor man's cron". Thank you for replying back! Can I delete the whole cache folder or I have to select anything in particular from the directory files? Will this create any problem to my website? Please help! Thanks! Link to comment Share on other sites More sharing options...
prestashopninja Posted January 13, 2014 Share Posted January 13, 2014 Hi, Sure, you can delete everything under the cache folder, but not the folder itself. In this case, most probably everything is going to be all right, yet as a good practice, you can just copy -or move- the files somewhere else, so if something will go wrong, you can still copy the files back there. Regards. Link to comment Share on other sites More sharing options...
aiynoon Posted January 13, 2014 Share Posted January 13, 2014 Hi, Sure, you can delete everything under the cache folder, but not the folder itself. In this case, most probably everything is going to be all right, yet as a good practice, you can just copy -or move- the files somewhere else, so if something will go wrong, you can still copy the files back there. Regards. Great! Thank you so much for your help. I will do that right away. One more thing: Template cache Never recompile template files Recompile templates if the files have been updated Force compilation Cache Clear Smarty cache & Autoload cacheShould be enabled except for debugging. Debug console Do not open console Open console with URL parameter (SMARTY_DEBUG) Always open console Debug console Key SMARTY_DEBUG parameter in the URL. I just saved this. Are these settings good? Will this settings help me not create cache files? I am sorry but I don't understand this. Do you know anything regarding this? Thank you once again! Link to comment Share on other sites More sharing options...
aiynoon Posted January 13, 2014 Share Posted January 13, 2014 Great! Thank you so much for your help. I will do that right away. One more thing: Template cache Never recompile template filesRecompile templates if the files have been updated Force compilation Cache Clear Smarty cache & Autoload cacheShould be enabled except for debugging. Debug console Do not open consoleOpen console with URL parameter (SMARTY_DEBUG) Always open console Debug console Key SMARTY_DEBUG parameter in the URL. I just saved this. Are these settings good? Will this settings help me not create cache files? I am sorry but I don't understand this. Do you know anything regarding this? Thank you once again! Opps the copy paste deleted the settings. Recompile templates if the files have been updated (I clicked on this) Cache (I clicked on no) Link to comment Share on other sites More sharing options...
prestashopninja Posted January 13, 2014 Share Posted January 13, 2014 Hi, I think you will need to enable the cache as well. Link to comment Share on other sites More sharing options...
aiynoon Posted January 13, 2014 Share Posted January 13, 2014 Oh ok. Well thank you once again! Hi, I think you will need to enable the cache as well. Link to comment Share on other sites More sharing options...
vekia Posted January 13, 2014 Share Posted January 13, 2014 prestashopninja please follow forum rules, especially part related to "signatures" thanks in advance. Link to comment Share on other sites More sharing options...
Recommended Posts