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