// Clean hooks name cache when a hook is added

This commit is contained in:
rMalie committed 2012-05-25 09:52:59 +00:00
1 parent 313b98469d
commit d6e0af213c
1 file changed
+6
+6
View File
@@ -82,6 +82,12 @@ class HookCore extends ObjectModel
*/ */
protected static $_hook_modules_cache_exec = null; protected static $_hook_modules_cache_exec = null;
public function add($autodate = true, $null_values = false)
{
Cache::clean('hook_idbyname_'.$this->name);
return parent::add($autodate, $null_values);
}
/** /**
* Return Hooks List * Return Hooks List
* *