private function clear_expired() { foreach ($this->cache_files as $ghash => $records) { $this->cache_files[$ghash] = array_filter($records, array($this, 'record_fresh')); } }