You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can purge URL programmatically with this simple code snippet: $cache = Mage::getSingleton('varnishcache/control'); if ($cache) { $cache->clean($_SERVER['HTTP_HOST'], 'URL/HERE'); }
Is there a way to purge the url programatically?
I'm updating the stock by writing to the database directly and would like to purge product urls (or by product id) afterwards (not on product save).
Or, if not, how would you go about purging all varnish programatically? (Mage::app()->cleanCache()) doesn't work.
Thanks!
The text was updated successfully, but these errors were encountered: