EmicoEcommerce / Magento1Tweakwise-archived

Magento 1 module for Tweakwise integration
Other
2 stars 8 forks source link

Issue with litemage cache #58

Open dhaval2711 opened 4 years ago

dhaval2711 commented 4 years ago

Hello we have implemented one rule for this category page in which recently viewed products should be shown first on the category page. But we are using Magento 1 with lite mage cache so in this case our list page is fully cached so last viewed products are not visible in first place until we flush cache.

Environment

Steps to reproduce 1) create a rule on tweawise to show last viewed product.

Actual result Until cache is cleared it is not showing last viewed products at the first position on category pages.

Expected result Last visited products should be visible on top on category pages. without lite mage cache refresh product order sohuld not be cached.

edwinljacobs commented 4 years ago

Hello,

I don't really understand the expected results. As you mention, you have a full page cache solution, as such any changes require a cache flush of the affected entities. That's just how it works. Whats the issue with flushing cache once in a while?

You can configure a task in tweakwise which can do this for you. This module comes with a cache controller https://github.com/EmicoEcommerce/Magento1Tweakwise/blob/master/app/code/community/Emico/Tweakwise/controllers/CacheController.php

which can be asked to flush cache for you, the task can be executed automatically when the publish task is done. The task should be of type execute url. You will need to rewrite that controller as it does not take your cache type into account but hey that's not a lot of work.

Hope this helps

dhaval2711 commented 4 years ago

Hello I don't have an issue to flush cache when I create rule. The thing is when users come to my website and they see some products so when they again come on category page that "last viewed products" should come on first on category pages. but now last viewed products are not coming at first place until I add random params to URL. Please share your email so I can share the URL of my website so you can better check it. Thank you.