public function get($url) { $cached = $this->cache_get($url); if (isset($cached)) { return $cached; } $content = parent::get($url); $this->cache_put($url, $content); return $content; }