Jump to content

Bug in APC (Prestashop 1.6.0.8)


Recommended Posts

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

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

×
×
  • Create New...