Open pixelchutes opened 8 years ago
Perhaps it is due to assets/components/spiefeed/cache existing, but $defaultCacheLocation
check is actually prefixed by core_path
?
Personally, I think it would be safer to store in core_path
(and not assets_path
) anyway, so perhaps the folder (and accompanying .gitignore
) also needs to be created?
In the current default handling for
setCacheLocation
, it processes the result throughrealpath()
. If the defined folder does not exist _(e.g. {corepath}components/spiefeed/cache), the code attempts to create it.However, it never succeeds.
Since
realpath()
cannot handle nonexistent files/folders, the result is always empty. That said, the value passed tomkdir
is an empty string, and the cache folder is not created. The only reason it does not error is the error suppressor@
at the front.Perhaps the default handling should pass
$scriptProperties['setCacheLocation']
tomkdir()
, or come up with an alternative torealpath()
to handle this correctly?