1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-01-17 02:58:15 +01:00

test with imgf

This commit is contained in:
Mikael Roos 2016-07-18 16:38:57 +02:00
parent 6cccf5497d
commit c637fa23ef
3 changed files with 5 additions and 3 deletions

View File

@ -224,8 +224,8 @@ class CFastTrackCache
header($value); header($value);
} }
readfile($item["source"]);
debug("fast track 200"); debug("fast track 200");
readfile($item["source"]);
exit; exit;
} }
} }

View File

@ -2652,8 +2652,8 @@ class CImage
$this->fastTrackCache->setSource($file); $this->fastTrackCache->setSource($file);
$this->fastTrackCache->writeToCache(); $this->fastTrackCache->writeToCache();
readfile($file);
debug("standard 200"); debug("standard 200");
readfile($file);
} }
exit; exit;

View File

@ -16,6 +16,8 @@ function debug1($msg)
file_put_contents($file, "$msg\n", FILE_APPEND); file_put_contents($file, "$msg\n", FILE_APPEND);
} }
//$useCache = getDefined(array('no-cache', 'nc'), false, true);
$cachePath = __DIR__ . "/../cache/fasttrack"; $cachePath = __DIR__ . "/../cache/fasttrack";
$query = $_GET; $query = $_GET;
@ -50,8 +52,8 @@ if (is_readable($filename)) {
header($value); header($value);
} }
readfile($item["source"]);
debug1("really fast track 200"); debug1("really fast track 200");
readfile($item["source"]);
exit; exit;
} }
} }