Apcu Problem (Bug?)

CS-CART 4.3.2



OK, I am not 100% if this is CS-Cart or my server



I have 2 cs-carts installed on my server ( Both different vhosts)



IF both are using APC cache, both carts stop working after a few clicks, complaining that some php files could not be opened



php log


[13-Jun-2015 15:36:56 Europe/Moscow] PHP Warning: include(/home/retail/public_html/app/schemas/routes/objects.php): failed to open stream: Permission denied in /home/dev/public_html/app/functions/fn.common.php on line 2108


funny, I am sure I have set my location to sydney



Now, as soon as I clear my APC cache, both sites work fine for a few clicks.

If I turn apc cache off for 1 cart, problems also go away



Which leads me to ask. How is different sites data stored in APCu?

If they are all just “cs-cart:cache:” . you might have some problems

EDIT: looks like a bunch of apc entries have no domain name in them

ie. cs-cart:cache:settings:1/cache_customer



So all hell will break loose if you use if you have 2 carts on the same cache



Short term fix



Create a new php-fpm master process for each cs-cart instance. thereby separating the apcu cache for each shop

[quote name='kogi' timestamp='1434235109' post='218652']

[color=#282828][font=arial, verdana, tahoma, sans-serif]So all hell will break loose if you use if you have 2 carts on the same cache.[/font][/color]

[/quote]



I suggest you a little bit undocumented trick: you can split cache via $config['saas_uid'] variable in config.local.php.

Thanks Gleb,



Didn't work. Am I doing in wrong?



config.local.php

add

$config['saas_uid'] = 'domain.name.com';



Clear cache



[attachment=9693:Screenshot-7.png]

Screenshot-7.png

hello guys… report this to bugtracker