Jasinka Posted October 14, 2015 Share Posted October 14, 2015 (edited) 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 October 14, 2015 by Jasinka (see edit history) Link to comment Share on other sites More sharing options...
JPresta.com Posted October 16, 2015 Share Posted October 16, 2015 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 More sharing options...
Jasinka Posted October 19, 2015 Author Share Posted October 19, 2015 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 More sharing options...
Jasinka Posted October 30, 2015 Author Share Posted October 30, 2015 (edited) 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 October 30, 2015 by Jasinka (see edit history) Link to comment Share on other sites More sharing options...
JPresta.com Posted October 30, 2015 Share Posted October 30, 2015 Try with this (1 seconde) public function getCacheId($name = NULL) { return parent::getCacheId($name) . '-' . date('Y-m-d H:i:s'); } Link to comment Share on other sites More sharing options...
Jasinka Posted October 30, 2015 Author Share Posted October 30, 2015 Looks like working, thank you 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