Lines Matching defs:depends
18 public $depends = []; // array containing cache dependency information,
69 * @param array $depends array of cache dependencies, support dependecies:
76 public function useCache($depends = [])
78 $this->depends = $depends;
97 * this function processes the following keys in the depends array
115 if (!empty($this->depends['purge'])) {
123 if (!empty($this->depends['age']) && ((time() - $this->_time) > $this->depends['age'])) {
127 if (!empty($this->depends['files'])) {
128 foreach ($this->depends['files'] as $file) {
131 } // cache older than files it depends on?
139 * add dependencies to the depends array
149 $this->depends['purge'] = true;