Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Issue with litemage cache #58

Open
5 tasks
dhaval2711 opened this issue Nov 11, 2020 · 2 comments
Open
5 tasks

Issue with litemage cache #58

dhaval2711 opened this issue Nov 11, 2020 · 2 comments

Comments

@dhaval2711
Copy link

dhaval2711 commented Nov 11, 2020

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

  • PHP Version: 7.1
  • Magento Version: 1.9.3
  • Magento Enterprise: no
  • Tweakwise Export Version: 3.0.0
  • Magento Deploy Mode: production

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
Copy link
Contributor

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants