octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 23:50:38 +08:00
Added a note about URLManager cache duration
https://github.com/yiisoft/yii2/pull/13426#issuecomment-366078957 issue #13426
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 1 changed files with 4 additions and 0 deletions
@@ -124,6 +124,10 @@ class UrlManager extends Component
|
|||||||
* After the UrlManager object is created, if you want to change this property,
|
* After the UrlManager object is created, if you want to change this property,
|
||||||
* you should only assign it with a cache object.
|
* you should only assign it with a cache object.
|
||||||
* Set this property to `false` if you do not want to cache the URL rules.
|
* 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';
|
public $cache = 'cache';
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user