mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
35 lines
865 B
PHP
Executable File
35 lines
865 B
PHP
Executable File
<?php
|
|
/*
|
|
* e107 website system
|
|
*
|
|
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
|
* Released under the terms and conditions of the
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
*
|
|
* Check for admin events being triggered
|
|
*
|
|
*/
|
|
function plugin_forum_admin_events($type, $parms)
|
|
{
|
|
//We currently only care about system cache, so just return if it's not
|
|
if(!isset($parms['syscache']) || !$parms['syscache']) { return ''; }
|
|
switch($type)
|
|
{
|
|
case 'cache_clear':
|
|
$which = varset($parms['cachetag']);
|
|
if('nomd5_classtree' == $which)
|
|
{
|
|
return 'plugin_forum_admin_events_clear_moderators';
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
|
|
//Called if classtree cache is cleared. Meaning we'll need to rebuild moderator cache
|
|
function plugin_forum_admin_events_clear_moderators()
|
|
{
|
|
$e107 = e107::getInstance();
|
|
$e107->ecache->clear_sys('nomd5_forum_moderators');
|
|
}
|
|
|