mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
core prefs: clearPrefCache method added
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
* e107 Preference Handler
|
* e107 Preference Handler
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/pref_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/pref_class.php,v $
|
||||||
* $Revision: 1.26 $
|
* $Revision: 1.27 $
|
||||||
* $Date: 2009-10-22 14:18:17 $
|
* $Date: 2009-11-03 10:47:16 $
|
||||||
* $Author: secretr $
|
* $Author: secretr $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -609,6 +609,22 @@ class e_pref extends e_admin_model
|
|||||||
return $this;
|
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
|
* Validation override
|
||||||
* @return
|
* @return
|
||||||
|
Reference in New Issue
Block a user