@@ 815-819 (lines=5) @@ | ||
812 | . (is_null($this->config_cache_maxfiles) ? 'NULL' : number_format($this->config_cache_maxfiles)) |
|
813 | . ' files)', __FILE__, __LINE__); |
|
814 | ||
815 | if (!is_writable($this->config_cache_directory)) { |
|
816 | $this->DebugMessage('CleanUpCacheDirectory() skipped because "' . $this->config_cache_directory . '" is not writable', __FILE__, __LINE__); |
|
817 | ||
818 | return true; |
|
819 | } |
|
820 | ||
821 | // cache status of cache directory for 1 hour to avoid hammering the filesystem functions |
|
822 | $phpThumbCacheStats_filename = $this->config_cache_directory . DIRECTORY_SEPARATOR . 'phpThumbCacheStats.txt'; |
|
@@ 1185-1187 (lines=3) @@ | ||
1182 | } |
|
1183 | $this->DebugMessage('$this->config_cache_directory (' . $this->config_cache_directory . ') is not a directory', __FILE__, __LINE__); |
|
1184 | $this->config_cache_directory = null; |
|
1185 | } elseif (!@is_writable($this->config_cache_directory)) { |
|
1186 | $this->DebugMessage('$this->config_cache_directory is not writable (' . $this->config_cache_directory . ')', __FILE__, __LINE__); |
|
1187 | } |
|
1188 | ||
1189 | $this->InitializeTempDirSetting(); |
|
1190 | if (!@is_dir($this->config_temp_directory) && !@is_writable($this->config_temp_directory) |