Commit 1e3671f 1 parent 67312d8 commit 1e3671f Copy full SHA for 1e3671f
File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ public function tree_recursive( $sha = '_default' ) {
98
98
* @return Writing_On_GitHub_Blob|WP_Error
99
99
*/
100
100
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
+ // }
104
104
105
105
$ data = $ this ->call ( 'GET ' , $ this ->blob_endpoint () . '/ ' . $ blob ->sha );
106
106
@@ -111,6 +111,7 @@ public function blob( $blob ) {
111
111
$ data ->path = $ blob ->path ;
112
112
$ obj = new Writing_On_GitHub_Blob ( $ data );
113
113
114
- return $ this ->app ->cache ()->set_blob ( $ obj ->sha (), $ obj );
114
+ return $ obj ;
115
+ // return $this->app->cache()->set_blob( $obj->sha(), $obj );
115
116
}
116
117
}
You can’t perform that action at this time.
0 commit comments