comarket Posted January 26, 2014 Share Posted January 26, 2014 When I try to enable the Browser Caching System it does not appear to save it. I have verified that the APC PECL extension is loaded and running. I do not get an error message, it says updated successful when I save it. But it does not stay enabled and saved. When I check the selection again the caching is back to disabled. How do I get it to stay enabled? Link to comment Share on other sites More sharing options...
El Patron Posted January 26, 2014 Share Posted January 26, 2014 see if this article helps any http://blog.dh42.com/apc-speed-prestashop/ Link to comment Share on other sites More sharing options...
comarket Posted January 26, 2014 Author Share Posted January 26, 2014 Thanks for the article, but that article explains how to enable the APC on my VPS server. This has already been done and working properly. The problem is in the Prestashop admin. When I try to enable the Browser Caching System in the Prestahop admin it does not appear to save it. It says updated successful when I click the save button. But when I scroll down to check the selection again the caching is back to the disabled selection. So is it actually saving it or not? If it is saving it shouldn't it now be on the APC selection that I just saved? and not back on the selection of disabled? Link to comment Share on other sites More sharing options...
El Patron Posted January 26, 2014 Share Posted January 26, 2014 I messaged dh42 for review. Link to comment Share on other sites More sharing options...
Dh42 Posted January 26, 2014 Share Posted January 26, 2014 Can you confirm that APC is actually constantly running with an apc configuration file showing the cache hits and up time? You can find one by googling apc.php file. If the time is always set for under 30 seconds then it is not really running, your PHP interpreter is killing current processes and spawning new ones for every hit to your site. Link to comment Share on other sites More sharing options...
comarket Posted January 26, 2014 Author Share Posted January 26, 2014 Thank you for the answer and input, but again this is a Prestashop admin question. When I click on the APC selection inside the Prestahop admin under the Maintenance section for the caching system at the bottom of the page, and then I save it. Why does it go back to disabled inside the Prestashop admin when I go back and look? It gives me a message of saved successfully when I click the save button, but then I scroll back down to the bottom of the page again and the selection is back to disabled. Link to comment Share on other sites More sharing options...
Dh42 Posted January 26, 2014 Share Posted January 26, 2014 I haven't looked into the code of how the enabling button works, but I feel pretty sure that it tried to detect if you are using APC on the server and disables the selection if you are not. It might prevent your shop from loading if you enable it and it does not automatically disable it if you are not running it. Also you might verify that it is enabled in your database. Link to comment Share on other sites More sharing options...
comarket Posted January 26, 2014 Author Share Posted January 26, 2014 Here are some of the statistics on the APC Opcode Cache. It looks fine to me, what do you think? Start Time 2014/01/26 05:53:00 Uptime 9 hours and 44 minutes File Upload Support 1 File Cache Information Cached Files 330 ( 36.4 MBytes) Hits 32479 Misses 333 Request Rate (hits, misses) 0.94 cache requests/second Hit Rate 0.93 cache requests/second Miss Rate 0.01 cache requests/second Insert Rate 0.01 cache requests/second Cache full count 0 Link to comment Share on other sites More sharing options...
Dh42 Posted January 26, 2014 Share Posted January 26, 2014 Try manually setting the value in the database. What Prestashop version are you using? Link to comment Share on other sites More sharing options...
comarket Posted January 27, 2014 Author Share Posted January 27, 2014 I am using Prestashop 1.5.6.2 and what value are you referring to set in the database? Link to comment Share on other sites More sharing options...
Dh42 Posted January 27, 2014 Share Posted January 27, 2014 I do not remember the row name, but it is in the ps_configuration table in the database. Link to comment Share on other sites More sharing options...
bryanblue Posted July 21, 2014 Share Posted July 21, 2014 same thing here..............i am on vps i can't even enable "file system" cache now. because everytime when i do so and hit save, scroll down it is back to disable. Link to comment Share on other sites More sharing options...
Recommended Posts