From 2685409df1a0718b492ce509f9fa8c809c94ddbb Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Mon, 20 Mar 2017 12:52:08 +0100 Subject: [PATCH] Cache vorerst abgeschaltet --- app/HtmlDocument.php | 1 + app/Http/Controllers/ProxyController.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/HtmlDocument.php b/app/HtmlDocument.php index c8ab0de..fe81d10 100644 --- a/app/HtmlDocument.php +++ b/app/HtmlDocument.php @@ -100,6 +100,7 @@ class HtmlDocument extends Document # Convert all relative Links to absolute Ones $action = $this->convertRelativeToAbsoluteLink($action); } + # # And finally Proxify the Url $action = $this->proxifyUrl($action, true); $form->setAttribute("action", $action); diff --git a/app/Http/Controllers/ProxyController.php b/app/Http/Controllers/ProxyController.php index 941aa72..344343b 100644 --- a/app/Http/Controllers/ProxyController.php +++ b/app/Http/Controllers/ProxyController.php @@ -140,7 +140,7 @@ class ProxyController extends Controller $result = []; $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 $this->initCurl(); $result = $this->getUrlContent($targetUrl, false); @@ -198,7 +198,7 @@ class ProxyController extends Controller # redundant file transfers: $val = base64_encode(serialize($result)); - Cache::put($hash, $val, 60); + #Cache::put($hash, $val, 60); } curl_close($this->ch); -- GitLab