Simone Salerno Posted December 7, 2015 Share Posted December 7, 2015 I'm experiencing a very strange behaviour on my website. If I enable smarty cache, all products from a specific category display the same page, that is the first product ever opened. An example: I open product A -> I see product A then open product B -> I see product A then open product C -> I see product A ... The url is correct, but the HTML response is that of another product. This happens only with: - SMARTY CACHE ENABLED - A SINGLE CATEGORY I cleaned tha cache several times, but no luck. Someone can help me? I know PHP and Prestashop quite well, but can't understand this. Link to comment Share on other sites More sharing options...
razaro Posted December 7, 2015 Share Posted December 7, 2015 Hi It is bit strange issue but could you maybe leave a link to that category ? Also do you use you caching module or some other 3rd party module and what is PrestaShop version ? Link to comment Share on other sites More sharing options...
Simone Salerno Posted December 8, 2015 Author Share Posted December 8, 2015 I use my own cache module (xtremecache), but now I've installed it and the problem still persists. I tried cache + force recompile, no compile, conditional compile: no luck. Here's the link: http://spagro.it/shop/24-biologico#lotta-biologica PS version: 1.6.0.5. Link to comment Share on other sites More sharing options...
razaro Posted December 8, 2015 Share Posted December 8, 2015 I see it is very strange. Try to check cache manually in folders. Not sure which version had issue with cache. But try to delete files in cache/smarty/compile and cache/smarty/cache all except index.php. Also in that compile check content of _product.tpl maybe some clue why that specific category have issues. Link to comment Share on other sites More sharing options...
Simone Salerno Posted December 8, 2015 Author Share Posted December 8, 2015 (edited) No luck I'm experiencing the same problem on a VPS I setup a couple of weeks ago, that is an exact clone of my shop: http://51.255.39.53/shop/index.php?id_category=24&controller=category#lotta-biologica So it must be something wrong with some config... Edited December 8, 2015 by SimoneS93 (see edit history) Link to comment Share on other sites More sharing options...
Simone Salerno Posted December 8, 2015 Author Share Posted December 8, 2015 (edited) I solved! I deleted the cache when in "All shops" context: the other times I was on the specific shop that was causing the problem. Still, I can't understand why this happened... Thank you very much razaro for your help. Edited December 8, 2015 by SimoneS93 (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted December 8, 2015 Share Posted December 8, 2015 Ah so multi store also. Yeah maybe some bug but glad at least you found solution. Link to comment Share on other sites More sharing options...
Simone Salerno Posted December 8, 2015 Author Share Posted December 8, 2015 Yes, is multistore, but only one has the frontend, the others are just backends. This is why I insisted on the shop context. Link to comment Share on other sites More sharing options...
Simone Salerno Posted December 8, 2015 Author Share Posted December 8, 2015 It seems something related with the default category. I've created a new category (with the same name of the current), tried moving a few products and they seem to work. I'll move all of them and hope it works. 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