1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-30 21:20:11 +02:00

tested cahce with remote

This commit is contained in:
Mikael Roos
2015-12-07 15:22:52 +01:00
parent 79a7fd17d8
commit c009f423a2
2 changed files with 6 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
$version = "v0.7.8* (2015-12-06)";
// For CRemoteImage
define(CIMAGE_USER_AGENT, "CImage/$version");
define("CIMAGE_USER_AGENT", "CImage/$version");
@@ -369,7 +369,7 @@ if ($allowRemote && $passwordMatch !== false) {
$cacheRemote = $cache->getPathToSubdir("remote");
$pattern = getConfig('remote_pattern', null);
$img->setRemoteDownload($allowRemote, $pattern, $cacheRemote);
$img->setRemoteDownload($allowRemote, $cacheRemote, $pattern);
$whitelist = getConfig('remote_whitelist', null);
$img->setRemoteHostWhitelist($whitelist);
@@ -1035,6 +1035,9 @@ if ($status) {
$res = $cache->getStatusOfSubdir("");
$text .= "Cache $res\n";
$res = $cache->getStatusOfSubdir("remote");
$text .= "Cache remote $res\n";
$res = $cache->getStatusOfSubdir("dummy");
$text .= "Cache dummy $res\n";

View File

@@ -14,7 +14,7 @@ return array(
* mode: 'production'
*/
//'mode' => 'production', // 'development', 'strict'
'mode' => 'development', // 'development', 'strict'
//'mode' => 'development', // 'development', 'strict'