Jump to content

APC Browser Caching System


Recommended Posts

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

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

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

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

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

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

  • 5 months later...
×
×
  • Create New...