diff options
author | Benaka <diosmosis@users.noreply.github.com> | 2018-02-21 02:54:28 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2018-02-21 02:54:28 +0300 |
commit | 00def1bf931918f8c8ea187e46a1d735d0e96724 (patch) | |
tree | ee222d5d15350d0165c1ef013f258b9a497e3770 | |
parent | 3b8a0990784e16ed149000b527a0841523799017 (diff) |
Add new Filesystem.allCachesCleared event after all caches cleared. (#12568)
-rw-r--r-- | core/Filesystem.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Filesystem.php b/core/Filesystem.php index 7fbd63be39..2ff3439b75 100644 --- a/core/Filesystem.php +++ b/core/Filesystem.php @@ -37,6 +37,12 @@ class Filesystem foreach ($plugins as $plugin) { $plugin->reloadPluginInformation(); } + + /** + * Triggered after all non-memory caches are cleared (eg, via the cache:clear + * command). + */ + Piwik::postEvent('Filesystem.allCachesCleared'); } /** |