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
Yii already has console commands to flush the cache:
This is Yii version 2.0.13.
The following commands are available:
- cache Allows you to flush cache.
cache/flush Flushes given cache components.
cache/flush-all Flushes all caches registered in the system.
cache/flush-schema Clears DB schema cache for a given connection component.
cache/index (default) Lists the caches that can be flushed.
Would be great if we could use the craft console to flush.
Currently, this throws an error, as it seems the @web and @webroot path aliases aren't available:
❯ ./bin/craft cache/flush-all
Exception 'yii\base\InvalidParamException' with message 'Invalid path alias: @webroot/cpresources'
in /Users/timkelty/Sites/coalesse-craft3/vendor/composer/yiisoft/yii2/BaseYii.php:154
Stack trace:
#0 /Users/timkelty/Sites/coalesse-craft3/vendor/composer/yiisoft/yii2/web/AssetManager.php(211): yii\BaseYii::getAlias('@w
Yii already has console commands to flush the cache:
Would be great if we could use the craft console to flush.
Currently, this throws an error, as it seems the @web and @webroot path aliases aren't available:
Similar/related issue: yiisoft/yii2#12631
The text was updated successfully, but these errors were encountered: