Skip to content

Commit

Permalink
remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
litefeel committed Jul 31, 2017
1 parent 67312d8 commit 1e3671f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/client/fetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand All @@ -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 );
}
}

0 comments on commit 1e3671f

Please sign in to comment.