From 1e3671fcef54023f5a40c16f1456ef8104e8690c Mon Sep 17 00:00:00 2001 From: litefeel Date: Mon, 31 Jul 2017 14:59:25 +0800 Subject: [PATCH] remove cache --- lib/client/fetch.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ); } }