Exemple #1
0
 /**
  * @return void
  * @param string $CacheTag - name of tag for future retrieval
  * @param string $Data - data to be cached
  * @param bool   $ForceCache (optional, default false) - if TRUE, writes cache even when disabled
  * @param bool   $bRaw (optional, default false) - if TRUE, writes data exactly as provided instead of prefacing with php leadin
  * @desc Creates / overwrites the cache file for $query, $text is the data to store for $query.
  * @scope public
  */
 function set_sys($CacheTag, $Data, $ForceCache = false, $bRaw = 0)
 {
     if (isset($this) && $this instanceof ecache) {
         return $this->set($CacheTag, $Data, $ForceCache, $bRaw, true);
     } else {
         ecache::set($CacheTag, $Data, $ForceCache, $bRaw, true);
     }
 }