diff --git a/lib/client/fetch.php b/lib/client/fetch.php index e11287b..2572736 100644 --- a/lib/client/fetch.php +++ b/lib/client/fetch.php @@ -98,9 +98,9 @@ public function tree_recursive( $sha = '_default' ) { * @return Writing_On_GitHub_Blob|WP_Error */ public function blob( $blob ) { - if ( $cache = $this->app->cache()->fetch_blob( $blob->sha ) ) { - return $cache; - } + // if ( $cache = $this->app->cache()->fetch_blob( $blob->sha ) ) { + // return $cache; + // } $data = $this->call( 'GET', $this->blob_endpoint() . '/' . $blob->sha ); @@ -111,6 +111,7 @@ public function blob( $blob ) { $data->path = $blob->path; $obj = new Writing_On_GitHub_Blob( $data ); - return $this->app->cache()->set_blob( $obj->sha(), $obj ); + return $obj; + // return $this->app->cache()->set_blob( $obj->sha(), $obj ); } }