yii2設置緩存

1. 咱們第一步操做的時候了,咱們先來配置組件。 方便起見,咱們的緩存組件配置在common\config\main.php文件,先來簡單配置下文件緩存 'components' => [ 'cache' => [ 'class' => 'yii\caching\FileCache', 'cachePath' => '@runtime/cache2',
相關文章
相關標籤/搜索