MetadataFlush
extends AutoSubscriber
in package
Event subscriber for metadata cache clear events.
Table of Contents
Methods
- getSubscribedEvents() : mixed
- onClearMetadata() : void
- When metadata is flushed, client-side resources also must be refreshed.
Methods
getSubscribedEvents()
public
static getSubscribedEvents() : mixed
onClearMetadata()
When metadata is flushed, client-side resources also must be refreshed.
public
static onClearMetadata() : void
This uses the Resources::resetCacheCode() method which doesn't delete any files from the assetBuilder directory, unlike the AssetBuilder::clear() method which does. This is to avoid concurrency issues where the user tries to download a resource as it's being deleted.