2012-06-21 7 views
0

캐시가 TRUE로 설정되어 있고 캐시 폴더가 777로 설정되어 있습니다.timthumb 캐시 이미지 경로

그러나 이미지 경로를 보면 파일 이름과 원본 경로가 표시됩니까?

대신 캐시 된 이미지의 경로를 표시하지 않아도됩니까?

Timthumb 설정 :

define ('CACHE_SIZE', 100);    // number of files to store before clearing cache 
define ('CACHE_CLEAR', 20);     // maximum number of files to delete on each cache clear 
define ('CACHE_USE', TRUE);     // use the cache files? (mostly for testing) 
define ('VERSION', '1.25');     // version number (to force a cache refresh) 
define ('DIRECTORY_CACHE', '../cache');  // cache directory 
define ('MAX_WIDTH', 5000);     // maximum image width 
define ('MAX_HEIGHT', 3000);    // maximum image height 
define ('ALLOW_EXTERNAL', FALSE);   // allow external website (override security precaution - not advised!) 
define ('MEMORY_LIMIT', '128M');    // set PHP memory limit 
define ('MAX_FILE_SIZE', 12582912);   // file size limit to prevent possible DOS attacks (roughly 12 megabytes) 
define ('CURL_TIMEOUT', 10);     // timeout duration. Tweak as you require (lower = better) 

문제 메신저 데는 URL의 이미지 경로가이입니다 :

http://mydomain.com/includes/crop.php?src=images/art/urban/alleyway.jpg&h=250&w=958&q=95 

그리고 캐시는이 될 것이다 활성화와 내가 생각 :

http://mydomain.com/cache/a051f7c9e5d039708ac92dece9a07901.jpg 

을 뭔가 잘못된 일을하는 경우 나에게 말해주십시오.

건배 존

지금까지 내가 말할 수있는

답변

1

는 TimThumb은 여전히 ​​존재 엄지 손가락이있는 경우 적어도 평가에 PHP 처리를 실행합니다. 그래서 아니오, 여전히 img에 같은 src가 있어야합니다.