File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ class Request
1111{
1212 public $ startingUrl ;
1313
14- private static $ cache = [];
1514 private $ resolverClass = 'Embed \\RequestResolvers \\Curl ' ;
1615 private $ resolverConfig ;
1716
@@ -49,13 +48,7 @@ public function __get($name)
4948 return $ this ->url = new Url ($ this ->resolver ->getUrl ());
5049
5150 case 'resolver ' :
52- $ url = UrlRedirect::resolve ($ this ->startingUrl ->getUrl ());
53-
54- if (isset (self ::$ cache [$ url ])) {
55- $ this ->resolver = self ::$ cache [$ url ];
56- } else {
57- $ this ->resolver = self ::$ cache [$ url ] = new $ this ->resolverClass ($ url );
58- }
51+ $ this ->resolver = new $ this ->resolverClass (UrlRedirect::resolve ($ this ->startingUrl ->getUrl ()));
5952
6053 if (is_array ($ this ->resolverConfig )) {
6154 $ this ->resolver ->setConfig ($ this ->resolverConfig );
You can’t perform that action at this time.
0 commit comments