File tree 1 file changed +2
-15
lines changed
src/Netresearch/Composer/Patches/Downloader
1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,6 @@ class Composer implements DownloaderInterface {
24
24
*/
25
25
protected $ remoteFileSystem ;
26
26
27
- /**
28
- * Very simple cache system
29
- * @var array
30
- */
31
- protected $ cache = array ();
32
-
33
27
/**
34
28
* Construct the RFS
35
29
*
@@ -56,10 +50,7 @@ protected function getOriginUrl($url) {
56
50
* @return string Contents of the URL
57
51
*/
58
52
public function getContents ($ url ) {
59
- if (array_key_exists ($ url , $ this ->cache )) {
60
- return $ this ->cache [$ url ];
61
- }
62
- return $ this ->cache [$ url ] = $ this ->remoteFileSystem ->getContents ($ this ->getOriginUrl ($ url ), $ url , false );
53
+ return $ this ->remoteFileSystem ->getContents ($ this ->getOriginUrl ($ url ), $ url , false );
63
54
}
64
55
65
56
/**
@@ -69,12 +60,8 @@ public function getContents($url) {
69
60
* @return stdClass
70
61
*/
71
62
public function getJson ($ url ) {
72
- $ key = 'json:// ' . $ url ;
73
- if (array_key_exists ($ key , $ this ->cache )) {
74
- return $ this ->cache [$ key ];
75
- }
76
63
$ json = new \Composer \Json \JsonFile ($ url , $ this ->remoteFileSystem );
77
- return $ this -> cache [ $ key ] = $ json ->read ();
64
+ return $ json ->read ();
78
65
}
79
66
}
80
67
?>
You can’t perform that action at this time.
0 commit comments