Peda Posted January 24, 2012 Share Posted January 24, 2012 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/cache folders 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...
anime and toy store Posted March 7, 2012 Share Posted March 7, 2012 same problem.... solution? Link to comment Share on other sites More sharing options...
Peda Posted March 7, 2012 Author Share Posted March 7, 2012 no solution Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 7, 2012 Share Posted March 7, 2012 Hi Peda, What are your current CCC settings? Marty Shue Link to comment Share on other sites More sharing options...
Peda Posted March 8, 2012 Author Share Posted March 8, 2012 Hi Marty, Smarty Force compile: No Cache: Yes CCC (Combine, Compress and Cache) Smart cache for CSS > Keep CSS as original Smart cache for JavaScript > Keep JavaScript as original Minify HTML > Keep HTML as original Compress inline JavaScript in HTML >Keep inline JavaScript in HTML as original High risk HTML compression >Keep W3C validation Caching Use cache: No Note: If using a cache system corrects this problem, I want to use paid Memcached or APC cache. I know that both of them fast but I need stability due to above reasons. So, can you suggest one of them memcached or apc for PS version 1.4.x or 1.5.x? Best Regards Link to comment Share on other sites More sharing options...
anime and toy store Posted April 7, 2012 Share Posted April 7, 2012 Have you solved this problem? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 7, 2012 Share Posted April 7, 2012 Has anything been modified with the blockcategories module? Link to comment Share on other sites More sharing options...
Peda Posted April 12, 2012 Author Share Posted April 12, 2012 not nothing changed in blockcategories folder and in modules/Categories block: Depth: 3 Dynamic: yes Sort: By position Note: I have 28 categories with 902 sub-categories. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 13, 2012 Share Posted April 13, 2012 Very odd. What version of PS are you using? Turning off the cache (second option in Preferences->Performance) should disable that, but there may be a small delay in load time. Link to comment Share on other sites More sharing options...
ruilong Posted April 13, 2012 Share Posted April 13, 2012 Do you have a large amount of products / categories in your shop? there will as per my understanding of the cache system, be one cached tpl file for the block categories per unique page in the store, so if you have 3000 products, that's 3000 files, add 1000 categories, you get another 1000 files. Link to comment Share on other sites More sharing options...
Peda Posted April 17, 2012 Author Share Posted April 17, 2012 Hi tomerg and ruilong. Sorry for the delayed answer. I did not try to Turning off the cache (second option in Preferences->Performance). If anyone can not find a solution then I think I have to turn of it. In earlier versions I was encountering the same problem. Now I was trying it with the latest version.Unfortunately same thing occured. For trial, I imported only 13 products with the same categories (28 categories with 902 sub-categories) Tryed it a few days and a few minutes ago I checked the path again (/public_html/tools/smarty/cache) and still I saw 9998 files named blockcategories^1_1_0_103^fe3349ea2b215f6536ca4b800bd44473c6d54bba.blockcategories.tpl.php In these .php files, all the content are the same. (I've attached the file) I am using Hostgator - VPS / web site: http://www.orijinalotoyedekparca.com Hostgator employee said: the size of the cache and the number of cache files generated depends on smarty configurations, all we can is setup a cron job to clear out the cache file on regular intervals so its not too big Server information Prestashop version: 1.4.7.3 Server information: Linux #1 SMP Wed Mar 7 15:20:22 MSK 2012 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.61-cll blockcategories^1_1_32425_0^fe3349ea2b215f6536ca4b800bd44473c6d54bba.blockcategories.tpl.php Link to comment Share on other sites More sharing options...
Peda Posted April 17, 2012 Author Share Posted April 17, 2012 Hello, Mr. Tomerg, Mr. Ruilong I found the reason. Now I need your help for solution. Back Office / Modules / Categories block > Dynamic: ..... If I choose Dynamic: YES; - In a few hours the /public_html/tools/smarty/cache folder up to thousands of files (blockcategories^1_1_0_103^fe3....) and increasing to gigabyte sizes. - Categories block (left corner) have plus (+) sign and easily to expand and collapse them with + If I choose Dynamic: NO; - All files disappearing from the cache folder. And the folder becomes empty. - Categories block (left corner) the plus (+) sign disappearing and all the categories expanded In normaly I have to use it in Dynamic mode to control expanding and collapsing. Could you please give me a direction how can I solve this. Regards Link to comment Share on other sites More sharing options...
anime and toy store Posted April 23, 2012 Share Posted April 23, 2012 up Link to comment Share on other sites More sharing options...
tomerg3 Posted July 10, 2012 Share Posted July 10, 2012 You can clear that cache from time to time, or turn off the cache feature in the backoffice (Preferences->performance). Make sure force compile is not turned on. You may see a very slight decrease in speed, but I don't think you'll even notice. Link to comment Share on other sites More sharing options...
sickz Posted July 10, 2012 Share Posted July 10, 2012 Maybe try to use a other categories module? Link to comment Share on other sites More sharing options...
tomerg3 Posted July 10, 2012 Share Posted July 10, 2012 You will likely have the same issue with any category module, since that cache saves the fully compiled tpl file with all the specific variables for a given page (whereas the regular smarty cache, in /compile) saves the template, but not with the specific variables for each page. Link to comment Share on other sites More sharing options...
sarafian Posted December 15, 2012 Share Posted December 15, 2012 Please see: http://www.prestashop.com/forums/topic/176681-slow-blockcategoriestpl/ This simple change to blockcategories.php and blocktopmenu.php reduced my smarty cache size and dramatically increased web page load times/performance. Link to comment Share on other sites More sharing options...
Recommended Posts