Esclusione esecuzione hook inutilizzati

This commit is contained in:
Beppe 2020-02-07 12:41:54 +01:00
parent a5034e8d0b
commit 6ac418e27f
1 changed files with 15 additions and 13 deletions

View File

@ -52,6 +52,7 @@ abstract class CachedManager extends Manager
{
$hook = self::getHook();
if( !empty($hook) ){
// Rimozione cache precedente
$database = database();
$database->delete('zz_hook_cache', [
@ -68,6 +69,7 @@ abstract class CachedManager extends Manager
self::$cache = $results;
self::$is_cached = null;
}
}
public static function isCached()
{