Ejemplo n.º 1
0
 /**
  * Hent info fra global cache
  */
 public function cache_global_load()
 {
     static $is_loading = false;
     if ($is_loading) {
         return false;
     }
     // avoid recursive calls
     $is_loading = true;
     // forsøk og last inn cache
     $res = $this->filmdb->cache_get($this->path_id);
     if ($res) {
         $this->cache_movie = $res['movie_details'];
         $this->cache = $res['imdb'];
     }
     $is_loading = false;
     if (!$res) {
         return false;
     }
     return true;
 }