@ You Go Daddy users
Ok this is an unsupported mod here, which may help you Go-Daddy fans
This hasn't been heavily tested so use at your own risK
from line 71 in your
/includes/functions/extra_functions/functions_bmz_io.php
PHP Code:
function getCacheName($data, $ext='') {
global $bmzConf;
$md5 = md5($data);
$file = $bmzConf['cachedir'] . '/' . $md5{0} . '/' . $md5.$ext;
io_makeFileDir($file);
return $file;
}
try replacing it with this
PHP Code:
function getCacheName($data, $ext='') {
global $bmzConf;
$md5 = md5($data);
// $file = $bmzConf['cachedir'] . '/' . $md5{0} . '/' . $md5.$ext;
$file = $bmzConf['cachedir'] . '/' . substr($md5,0,2) . '/' . $md5.$ext;
io_makeFileDir($file);
return $file;
}
Currently Image Handler uses the first character of the optimised image for the sub directory name in your bmz_cache folder, so you will have 16 sub folders 0-f (hexidecimal), The change above instead take the first 2 characters of the optimised image name giving you 256 subfolders in the bmz_cache, so this should mean less images in each folder.
And just a note, there is no point trying to take the first 3 chars as that will give you 4096 folders which might kill the hamster that runs Go-Daddy
Bookmarks