34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
AssetManager: clearing browser's cache on site update
Comparing
#2
with
#3
Revision #3 was created by
dhampik
on Nov 25, 2012, 12:17:10 PM.
Added check if YII_DEBUG is defined to getAssetsBase method
« Previous (#2)
Content
[...]
if ($this->_assetsBase === null) {
$this->_assetsBase = Yii::app()->assetManager->publish(
Yii::getPathOfAlias('application.assets'),
false,
-1,
defined('YII_DEBUG') &&
YII_DEBUG
);
}
return $this->_assetsBase;
}
[...]