Add option to empty the contents of the cache dir, not delete it

files/cache 폴더에 다른 파티션이나 램디스크 등이 마운트되어 있는 경우
캐시파일 재생성시 폴더를 삭제할 수 없어 오작동하는 문제를 우회하기 위해
폴더 자체를 삭제하지 않고 내용만 비우는 옵션을 추가함.
This commit is contained in:
Kijin Sung 2017-12-21 14:39:39 +09:00
parent b6aac0beac
commit ae4fd85bfe
6 changed files with 58 additions and 5 deletions

View file

@ -508,6 +508,7 @@ class adminAdminView extends admin
Context::set('object_cache_port', null);
Context::set('object_cache_dbnum', 1);
}
Context::set('cache_truncate_method', Rhymix\Framework\Config::get('cache.truncate_method'));
// Thumbnail settings
$oDocumentModel = getModel('document');