/** * Initializes the properties of the class. * @param string $path Folder where the logs will be stored. * @param string $nameSpace <b>Optional</b>. recommended for a quicker access to the cache. * @param int $expires <b>Optional</b>. expiration date of the cache, default is 1 day. */ public function __construct($path, $nameSpace = '', $expires = 86400) { $this->path = $path; $this->expires = (int) date('Ymd', time() + $expires); if (!empty($nameSpace)) { $this->path = $path . '/.cch' . md5($nameSpace); } if (!empty(self::$fo)) { self::$fo = new File($this->path); } }