1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Added e107::getEvent()->triggered() for manually checking if an event has already been triggered.

This commit is contained in:
Cameron
2022-06-07 12:33:50 -07:00
parent 08eb2a37d9
commit 8bf3481eaf
3 changed files with 103 additions and 4 deletions

View File

@@ -55,6 +55,7 @@ if (isset($_POST['submit_cache']))
if (isset($_POST['trigger_empty_cache']))
{
e107::getLog()->addSuccess(CACLAN_6);
$triggerName = $_POST['option_clear_cache'];
switch ($_POST['option_clear_cache'])
{
case 'empty_contentcache':
@@ -101,8 +102,11 @@ if (isset($_POST['trigger_empty_cache']))
e107::getCache()->clearAll('css');
e107::getSession()->clear('addons-update-status');
e107::getLog()->flushMessages(CACLAN_26);
$triggerName = 'default';
break;
}
e107::getEvent()->trigger('admin_after_clear_cache', $triggerName);
}
$syscache_files = glob(e_CACHE_CONTENT.'S_*.*');