Added a note about URLManager cache duration

https://github.com/yiisoft/yii2/pull/13426#issuecomment-366078957
issue #13426
This commit is contained in:
Carsten Brandt
2018-02-16 04:34:38 +01:00
parent 8079456290
commit ef8f6172bb

View File

@ -124,6 +124,10 @@ class UrlManager extends Component
* After the UrlManager object is created, if you want to change this property,
* you should only assign it with a cache object.
* Set this property to `false` if you do not want to cache the URL rules.
*
* Cache entries are stored for the time set by [[\yii\caching\Cache::$defaultDuration|$defaultDuration]] in
* the cache configuration, which is unlimited by default. You may want to tune this value if your [[rules]]
* change frequently.
*/
public $cache = 'cache';
/**