Skip to content

Commit 1e3671f

Browse files
committed
remove cache
1 parent 67312d8 commit 1e3671f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/client/fetch.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public function tree_recursive( $sha = '_default' ) {
9898
* @return Writing_On_GitHub_Blob|WP_Error
9999
*/
100100
public function blob( $blob ) {
101-
if ( $cache = $this->app->cache()->fetch_blob( $blob->sha ) ) {
102-
return $cache;
103-
}
101+
// if ( $cache = $this->app->cache()->fetch_blob( $blob->sha ) ) {
102+
// return $cache;
103+
// }
104104

105105
$data = $this->call( 'GET', $this->blob_endpoint() . '/' . $blob->sha );
106106

@@ -111,6 +111,7 @@ public function blob( $blob ) {
111111
$data->path = $blob->path;
112112
$obj = new Writing_On_GitHub_Blob( $data );
113113

114-
return $this->app->cache()->set_blob( $obj->sha(), $obj );
114+
return $obj;
115+
// return $this->app->cache()->set_blob( $obj->sha(), $obj );
115116
}
116117
}

0 commit comments

Comments
 (0)