From c637fa23ef3b2af4cec76b96151748394eabfa85 Mon Sep 17 00:00:00 2001 From: Mikael Roos Date: Mon, 18 Jul 2016 16:38:57 +0200 Subject: [PATCH] test with imgf --- CFastTrackCache.php | 2 +- CImage.php | 2 +- webroot/imgf.php | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CFastTrackCache.php b/CFastTrackCache.php index 39ff7b5..9b71022 100644 --- a/CFastTrackCache.php +++ b/CFastTrackCache.php @@ -224,8 +224,8 @@ class CFastTrackCache header($value); } - readfile($item["source"]); debug("fast track 200"); + readfile($item["source"]); exit; } } diff --git a/CImage.php b/CImage.php index d0db1d2..bf9d984 100644 --- a/CImage.php +++ b/CImage.php @@ -2652,8 +2652,8 @@ class CImage $this->fastTrackCache->setSource($file); $this->fastTrackCache->writeToCache(); - readfile($file); debug("standard 200"); + readfile($file); } exit; diff --git a/webroot/imgf.php b/webroot/imgf.php index 34a9f42..7f5e2b9 100644 --- a/webroot/imgf.php +++ b/webroot/imgf.php @@ -16,6 +16,8 @@ function debug1($msg) file_put_contents($file, "$msg\n", FILE_APPEND); } +//$useCache = getDefined(array('no-cache', 'nc'), false, true); + $cachePath = __DIR__ . "/../cache/fasttrack"; $query = $_GET; @@ -50,8 +52,8 @@ if (is_readable($filename)) { header($value); } - readfile($item["source"]); debug1("really fast track 200"); + readfile($item["source"]); exit; } }