Jump to content

How to exclude smarty cache from caching module?


Recommended Posts

Hello,

 

I wanna ask how working smarty cache? I wanna exclude one module. It's call - "blockbestsellers".

What i need is don't create cache - /cache/smarty/cache/blockbestsellers_col

 

I read about {nocache} here, but getting just blank page. I am not programmer, so maybe doing smth bad...

 

Maybe someone can explain how exclude this?

 

Thank you very much for your time,

Regards.

Edited by Jasinka (see edit history)
Link to comment
Share on other sites

I just found that cache has a bug in this module (and also in blockspecials and homefeatured), special prices are not refreshing the cache. To reduce it to 1 minute, which solves the issue, you can add the following method in blockbestsellers.php

 

public function getCacheId($name = NULL) {
   return parent::getCacheId($name) . '-' . date('Y-m-d H:i:00');
}
Link to comment
Share on other sites

Hello,

 

Thanks for respond. It's not very good idea, because some times user just see message "no favorite products" because no cookies, and product was removed from list.

And can create bash script witch with cron can delete that folder...

 

But thanks for idea.

Link to comment
Share on other sites

  • 2 weeks later...

 

I just found that cache has a bug in this module (and also in blockspecials and homefeatured), special prices are not refreshing the cache. To reduce it to 1 minute, which solves the issue, you can add the following method in blockbestsellers.php

 

public function getCacheId($name = NULL) {
   return parent::getCacheId($name) . '-' . date('Y-m-d H:i:00');
}

 

I just found that cache has a bug in this module (and also in blockspecials and homefeatured), special prices are not refreshing the cache. To reduce it to 1 minute, which solves the issue, you can add the following method in blockbestsellers.php

 

public function getCacheId($name = NULL) {
   return parent::getCacheId($name) . '-' . date('Y-m-d H:i:00');
}

 

Maybe you can say how to do it to couple or one seconds?

Thank you.

 

Edited by Jasinka (see edit history)
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...