From ef8f6172bb95ff1eb164103fcd6f3ca83f27f14d Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 16 Feb 2018 04:34:38 +0100 Subject: [PATCH] Added a note about URLManager cache duration https://github.com/yiisoft/yii2/pull/13426#issuecomment-366078957 issue #13426 --- framework/web/UrlManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/web/UrlManager.php b/framework/web/UrlManager.php index 4509f93182..5ad3da1eae 100644 --- a/framework/web/UrlManager.php +++ b/framework/web/UrlManager.php @@ -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'; /**