frontend/config/_cache.php
<?php
/*
* This file is part of the HomeFinanceV2 project.
*
* (c) Rafalsky.com <http://github.com/Rafalsky/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* @author Eugene Terentev <eugene@terentev.net>
*/
$cache = [
'class' => 'yii\caching\FileCache',
'cachePath' => '@frontend/runtime/cache'
];
if (YII_ENV_DEV) {
$cache = [
'class' => 'yii\caching\DummyCache'
];
}
return $cache;