Difference between #2 and #3 of
AssetManager: clearing browser's cache on site update

Revision #3 has been created by dhampik on Nov 25, 2012, 12:17:10 PM with the memo:

Added check if YII_DEBUG is defined to getAssetsBase method
« previous (#2)

Changes

Title unchanged

AssetManager: clearing browser's cache on site update

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

assets, cache, AssetManager, CAssetManager

Content changed

[...]
if ($this->_assetsBase === null) {
$this->_assetsBase = Yii::app()->assetManager->publish(
Yii::getPathOfAlias('application.assets'),
false,
-1,
 defined('YII_DEBUG') && YII_DEBUG
);
}
return $this->_assetsBase;
}
[...]
15 0
25 followers
Viewed: 57 642 times
Version: 1.1
Category: How-tos
Written by: dhampik
Last updated by: dhampik
Created on: Feb 29, 2012
Last updated: 11 years ago
Update Article

Revisions

View all history