For custom directory, paren’t shouldn’t be required to be writable
-
When setting up a custom path for the cache location, the plugin currently requires the PARENT of that folder to be writable:
if($fvm_change_cache_path !== false && $fvm_change_cache_base !== false && strlen($fvm_change_cache_path) > 1 && is_dir($fvm_change_cache_path) && is_writable(dirname($fvm_change_cache_path))) {
For example, if I want to save the cache in /wp-content/cool-cache, this is requiring me to make wp-content writable, not the actual path which is /wp-content/cool-cache.
Instead, the plugin should check that the target path is writable, NOT THE PARENT. You can remove dirname call from here:
if($fvm_change_cache_path !== false && $fvm_change_cache_base !== false && strlen($fvm_change_cache_path) > 1 && is_dir($fvm_change_cache_path) && is_writable($fvm_change_cache_path)) {
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘For custom directory, paren’t shouldn’t be required to be writable’ is closed to new replies.