mikeshop Posted October 15, 2019 Share Posted October 15, 2019 Hi, I try to empty the cache of a single module every 24 hours, I tried some solution but it did not work Who can i clear cache of module for example /modules/abc/ on Prestashop 1.7 require('/config/config.inc.php'); $this->context->smarty->clearCompiledTemplate("abc.tpl"); Any help please ? Link to comment Share on other sites More sharing options...
Ruark1H Posted October 17, 2019 Share Posted October 17, 2019 In this way, you can schedule a single cron job multiple times YourTexasBenefits. Link to comment Share on other sites More sharing options...
mikeshop Posted October 18, 2019 Author Share Posted October 18, 2019 Up Link to comment Share on other sites More sharing options...
firstnationalcc Posted February 6, 2020 Share Posted February 6, 2020 you can schedule a single cron job multiple times by this method. disney hub login portal enterprise mycvshr Link to comment Share on other sites More sharing options...
psy_ch Posted February 28, 2023 Share Posted February 28, 2023 UNTESTED: https://prestacraft.com/programmatically-cache-clearing-in-prestashop/# I'm probably gonna test it tonight. Yet I'd put it into the admin folder which in my case is .htaccess blocked "require all denied" except for certain office IP's which makes it most secure. Putting it into the root is kinda dumb as it's not something that is for the customers to execute but administrators... 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