i18n\DbMessageSource $cache

$cache public property

The cache object or the application component ID of the cache object. The messages data will be cached using this cache object. Note, that to enable caching you have to set $enableCaching to true, otherwise setting this property has no effect.

After the DbMessageSource object is created, if you want to change this property, you should only assign it with a cache object.

Starting from version 2.0.2, this can also be a configuration array for creating the object.

See also:

doc_Yii
2016-10-30 17:05:49
Comments
Leave a Comment

Please login to continue.