-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Evo 3.1.29 getCacheFolder #490
Comments
What's your case? Do you need to cache something? |
Just testing a Evo 1.4 plugin with Evo 3x. |
@Nicola1971 I've declared this method as deprecated, so it would be better not to use it at all. In the case of your PageCacheManager plugin, you needn't getCacheFolder, because you can call $modx->clearCache($doc_id) instead of all this code: https://github.com/Nicola1971/PageCacheManager/blob/main/install/assets/plugins/PageCacheManager.tpl#L64-L101; |
Is there anyway a replacement for getCacheFolder? without hardcoding the path? |
clearCache($doc_id) streamlined my code a lot :) |
I don't think we need a replacement, because there's Storage facade in 3.x. |
is there still clearcache on 3x? |
Yes. |
Summary
Evo 3.1.29 return just 'cache/' with $modx->getCacheFolder()
Steps to reproduce.
Evo 1.4.35 with $modx->getCacheFolder()
'assets/cache/'
Evo 3.1.29 with $modx->getCacheFolder()
'cache/' instead of 'core/storage/bootstrap'
Observed behavior
EvoCMS version
Evo 3.1.29
PHP version
8.1.29
The text was updated successfully, but these errors were encountered: