-
Notifications
You must be signed in to change notification settings - Fork 2
Enable Caching
Junaid Atari edited this page Apr 9, 2016
·
3 revisions
- Open
@app/config/main.php
file into code editor. - Add the following lines to enable caching:
return [
// ...
'cdn' => [
// ...
'enableCaching' => true,
'cacheKey' => '...', // Place your unique cache key here
// ...
],
// ...
];
// It will clear the cache and rebuild the list.
\Yii::$app()->cdn->refresh();
Copyright (c) 2016 Junaid Atari and it's contributes.