1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

core prefs: clearPrefCache method added

This commit is contained in:
secretr
2009-11-03 10:47:16 +00:00
parent 362151c3bb
commit 187d660782

View File

@@ -9,8 +9,8 @@
* e107 Preference Handler
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/pref_class.php,v $
* $Revision: 1.26 $
* $Date: 2009-10-22 14:18:17 $
* $Revision: 1.27 $
* $Date: 2009-11-03 10:47:16 $
* $Author: secretr $
*/
@@ -609,6 +609,22 @@ class e_pref extends e_admin_model
return $this;
}
/**
* Clear pref cache
*
* @param boolean $runtime clear runtime cache as well ($this->pref_cache)
* @return e_pref
*/
protected function clearPrefCache($runtime = false)
{
if($runtime)
{
$this->pref_cache = $cache_string;
}
ecache::clear_sys('Config_'.$this->alias);
return $this;
}
/**
* Validation override
* @return