adrianwalerczak Posted December 10, 2016 Share Posted December 10, 2016 Hello everyone. I write my own script to deactivate the products in my shop.SQL: 1) "UPDATE ps_product SET active=0, redirect_type=404 WHERE id_product IN (".implode(',',$itemsDeactivate).")"; 2) "UPDATE ps_product_shop SET active=0, redirect_type=404 WHERE id_product IN (".implode(',',$itemsDeactivate).")";Query works fine, but when I refresh the page these products continue to see. What am I doing wrong - help. Link to comment Share on other sites More sharing options...
rocky Posted December 11, 2016 Share Posted December 11, 2016 Do you have caching enabled on the Advanced Parameters > Performance tab? If so, you'll need to click the "Clear cache" button. Link to comment Share on other sites More sharing options...
adrianwalerczak Posted December 12, 2016 Author Share Posted December 12, 2016 It works. Cool. But I have to click on the "clean cache". How to do that work automatically in my script? Link to comment Share on other sites More sharing options...
adrianwalerczak Posted December 12, 2016 Author Share Posted December 12, 2016 https://www.prestashop.com/forums/topic/343407-clear-smarty-cache-automatically/ It works :) THX 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