Skip to content

Commit 6e22601

Browse files
committed
removed the simple cache system
1 parent f77a7ad commit 6e22601

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Request.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)