M.Rimkus Posted July 1, 2014 Share Posted July 1, 2014 I truned on APC caching, and after some time I can't login to admin panel, can't visit back-office. Get error: Fatal error: Call to undefined function pSQL() in /public_html/classes/shop/Shop.php on line 324 APC config: ;**************************** ; APC ;***************************** extension=apc.so apc.enabled=1 apc.shm_size=128M apc.enable_cli=1 ;PHP file cache 1 hour ## apc.ttl = 3600 ;User cache 2 hour ## apc.user_ttl = 7200 ;Garbage collection 1 hour ## apc.gc_ttl=3600 apc.max_file_size=1M If I turned apc off (apc.enable = 0) everything works fine. Server: Linux version 2.6.32-042stab090.5 (gcc version 4.4.6 2012305 (Red Hat 4.4.6-4) (GCC) ) CentOS release 6.5 (Final) Link to comment Share on other sites More sharing options...
bluecarbon Posted July 2, 2014 Share Posted July 2, 2014 This is my configuration and works fine. apc.enabled=1extension=apc.soapc.shm_size=128apc.stat=1apc.num_files_hint=10000apc.max_file_size=5Mapc.user_entries_hint=10000 But remember don't activate the cache in prestashop. 1 Link to comment Share on other sites More sharing options...
Dh42 Posted July 2, 2014 Share Posted July 2, 2014 I haven't looked into the files, but from the best I can tell Prestashop uses APCu if you activate the cache in the back office. I tend to not do it, because you can get weird results. If a php thread dies, it will request a fresh copy, yet another thread might be living on with an older copy in the cache. I have found that creates issues. I would leave apc disabled in the back office unless you do not change things on the site often. Link to comment Share on other sites More sharing options...
Recommended Posts