As I understand it, ImageCache responds to a URI, for example
http://www.yourdomain.com/default/files/imagecache/set/images/pic.png
http://www.yourdomain.com - , files/imagecache - imagecache, set - , (: images/pic.png) - .
, pic.png , (default.png) ImageCache. .htaccess :
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule ^([^.]+)\.[gif|jpg|png]$ /images/default.png [L]
ImageCache images/pic.png, images/default.png, default/files/imagecache/set/images/pic.png.
, , .
,
- ########### -
EDIT :
, . imagecache.module 386 _imagecache_cache($presetname, $path). ( 403).
if (!is_file($src) && !is_file($src = file_create_path($src))) {
watchdog('imagecache', '404: Unable to find %image ', array('%image' => $src), WATCHDOG_ERROR);
header("HTTP/1.0 404 Not Found");
exit;
};
if (!is_file($src) && !is_file($src = file_create_path($src))) {
watchdog('imagecache', '404: Unable to find %image ', array('%image' => $src), WATCHDOG_ERROR);
$src = 'sites/all/modules/imagecache/sample.png';
};
(: . $src , .)