renaud2263 Posted November 20, 2016 Share Posted November 20, 2016 Hi All, I develop my own BO module with a stat graph. I need this graph to be generated each refresh of the page. My graph function generate a PNG file. How I can prevent this image to be in the cache ? Thanks for help. Link to comment Share on other sites More sharing options...
rocky Posted November 28, 2016 Share Posted November 28, 2016 Add the image update time after the image URL in a query string. That's how PrestaShop does it on line 1617 of classes/controller/FrontController.php: $logo = $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_LOGO_MOBILE').'?'.Configuration::get('PS_IMG_UPDATE_TIME')); 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