luke.lukas Posted November 4, 2022 Share Posted November 4, 2022 Hello, So In the backoffice catalog/products, i'll go into a product and edit the stock, and it says it's worked, and the database shows that it's worked. If I refresh that same page the stock goes back to what it was before, if I open in private browsing or another browser it still says the old number. If I disable CacheApc it shows the correct number. If I reload php-fpm in a terminal it shows the correct number, I believe it's some sort of opcache issue, but if I enable opcache in the php.ini file with CacheApc off it works fine. What am I doing wrong? Thanks Link to comment Share on other sites More sharing options...
luke.lukas Posted November 4, 2022 Author Share Posted November 4, 2022 Another thing I've just noticed is that templates are set to never update, but if I change a .tpl file in my /themes it will update without clearing the cache. Link to comment Share on other sites More sharing options...
Mediacom87 Posted November 4, 2022 Share Posted November 4, 2022 Hi, Do not use any of the server cache systems proposed by PrestaShop in the Performance page, they all cause data consistency issues and can cause quite serious situations, such as a customer who could access the data of another customer. https://www.mediacom87.fr/en/how-to-configure-the-performance-page-of-prestashop-17/ Link to comment Share on other sites More sharing options...
luke.lukas Posted November 7, 2022 Author Share Posted November 7, 2022 There must be a way to turn CacheApc on without it blocking quantities from updating. Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted November 8, 2022 Share Posted November 8, 2022 ApcCache caches any php code that is executed through the PHP engine , pretty hard to exclude stuff from getting cached so probably best to disable it if it dos not work for you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now