Contents

cms.asset.invalidate

Triggered in Cms\Classes\Asset.

Fires after asset bytes change on the assets disk so CDN caches can be purged. Receives the theme and the changed disk keys.

Example usage:

Event::listen('cms.asset.invalidate', function ($theme, $diskPaths) {
    MyCdn::invalidate($diskPaths);
});