Skip to content
Snippets Groups Projects
Commit 2685409d authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Cache vorerst abgeschaltet

parent 5a5bb17d
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,7 @@ class HtmlDocument extends Document ...@@ -100,6 +100,7 @@ class HtmlDocument extends Document
# Convert all relative Links to absolute Ones # Convert all relative Links to absolute Ones
$action = $this->convertRelativeToAbsoluteLink($action); $action = $this->convertRelativeToAbsoluteLink($action);
} }
#
# And finally Proxify the Url # And finally Proxify the Url
$action = $this->proxifyUrl($action, true); $action = $this->proxifyUrl($action, true);
$form->setAttribute("action", $action); $form->setAttribute("action", $action);
......
...@@ -140,7 +140,7 @@ class ProxyController extends Controller ...@@ -140,7 +140,7 @@ class ProxyController extends Controller
$result = []; $result = [];
$httpcode = 200; $httpcode = 200;
if (!Cache::has($hash)) { if (!Cache::has($hash) || 1 === 1) {
// Inits the Curl connection for being able to preload multiple URLs while using a keep-alive connection // Inits the Curl connection for being able to preload multiple URLs while using a keep-alive connection
$this->initCurl(); $this->initCurl();
$result = $this->getUrlContent($targetUrl, false); $result = $this->getUrlContent($targetUrl, false);
...@@ -198,7 +198,7 @@ class ProxyController extends Controller ...@@ -198,7 +198,7 @@ class ProxyController extends Controller
# redundant file transfers: # redundant file transfers:
$val = base64_encode(serialize($result)); $val = base64_encode(serialize($result));
Cache::put($hash, $val, 60); #Cache::put($hash, $val, 60);
} }
curl_close($this->ch); curl_close($this->ch);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment