unset($masterSalt);
} // END - if
-if ((getFileHash() == '') || (!isFileReadable(getPath() . getCachePath() . '.' . getFileHash() . '.cache'))) {
+if ((getFileHash() == '') || (!isFileReadable(getGenericHashFileName()))) {
// Create filename from hashed random string
$fileHash = sha1(generatePassword(mt_rand(128, 256)));
- $FQFN = sprintf('%s%s.%s.cache',
+ $FQFN = sprintf('%s%s.%s%s',
getPath(),
getCachePath(),
- $fileHash
+ $fileHash,
+ getCacheExtension()
);
// Generate secret key from a randomized string