Jump to content

Homefeatured Cache


Recommended Posts

Hello,

 

I'm having a problem with HomeFeatured module 1.8.0 which caches queried products.

 

I have the randomize feature enabled but the query result is cached and not refreshed anymore.

To work around this I tried to solve this by overriding hookDisplayHome and _cacheProducts methods.

I did not succeed however.

 

I can manage to avoid caching but what I would like to do is to refresh the cache after for example 30 minutes.

 

Any ideas?

 

Tried something with storing time in a static variable

and when current time > stored time + configurable offset clearing the cache with $this_>clearCache(...).

But that also resulted in loosing the static variable and triggering the refresh before the timer expires.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...