Open timkelty opened 7 years ago
Since you're using elements.onSaveElement, the element's URI ends up being the newly saved one.
elements.onSaveElement
If the URI is being changed, the old one will remain varnished until manually cleared. I added the following to address:
craft()->on('elements.onBeforeSaveElement', function (Event $event) { craft()->varnishpurge->purgeElement($event->params['element'], false); });
Since you're using
elements.onSaveElement
, the element's URI ends up being the newly saved one.If the URI is being changed, the old one will remain varnished until manually cleared. I added the following to address: