Skip to content

Enable Caching

Junaid Atari edited this page Apr 9, 2016 · 3 revisions

How to enable:

  1. Open @app/config/main.php file into code editor.
  2. Add the following lines to enable caching:
return [
	// ...
	'cdn' => [
		// ...
        'enableCaching' => true,
		'cacheKey' => '...', // Place your unique cache key here
        // ...
	],
    // ...
];

How to clear:

// It will clear the cache and rebuild the list.
\Yii::$app()->cdn->refresh();

Note: the red links below are pages yet to be created. Feel free to add them!

Overview documents

  • README: distributed with yii2cdn, contains a quick overview of yii2cdn's functionality, an example, and the license.
  • REFERENCE: Containing incomplete api class reference.

Quick Start

Configuration

Tutorials

Clone this wiki locally