You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of the next release, the clear-caches console command will clear CP resources if the @webroot was custom-defined by the aliases config setting as well.
Description
I'm trying to use the .
/craft clear-caches/all
CLI command.Everything is working fine, except that I always get this error:
Error clearing cache Control Panel resources: Unable to clear Control Panel resources because the location isn't known for console commands.
My configuration returns these values:
Craft::$app->getConfig()->getGeneral()->resourceBasePath
->@webroot/cpresources
Craft::getAlias('@webroot')
-> return correct value (using/htdocs
as root folder)I tried on another Craft 3.1 website, and got the same error. So perhaps it is a bug.
Steps to reproduce
./craft clear-caches/all
commandAdditional info
The text was updated successfully, but these errors were encountered: