php - Yii2 assetManager appendTimestamp not working properly -
php - Yii2 assetManager appendTimestamp not working properly -
i using appendtimestamp
of assetmanager
component
'assetmanager' => [ //append time stamps assets cache busting 'appendtimestamp' => true, ], 'cache' => [ 'class' => 'yii\caching\filecache', ],
it correctly adds timestamp after each asset shown: <link href="/frontend/web/assets/7b3fec74/css/arabic.css?v=1428761706" rel="stylesheet">
however when create changes css file, timestamp not update. because of filecache?
every time wish test new changes, need clear contents of web/assets
folder
am required delete contents of assets folder every time wish test new assets?
the filecache
component referred - has nil assets. responsible defined cache items :
yii::$app->cache->set('key', 'value') yii::$app->cache->get('key') ...
so there might problem assetmanager
.
php yii2
Comments
Post a Comment