/** * 强制更新缓存 */ public function updateCache() { // self::$__tasks = null; // self::$__tasks = $this->readTaskArray(); if (isset($this->cache)) { $this->cache->set('collect.task', $__tasks); } return true; }