Class CFileCacheDependency
CFileCacheDependency represents a dependency based on a file's last modification time.
CFileCacheDependency performs dependency checking based on the last
modification time of the file specified via CFileCacheDependency::$fileName
. The dependency is
reported as unchanged if and only if the file's last modification time remains
unchanged.
- CComponent
- CCacheDependency implements ICacheDependency
- CFileCacheDependency
Package: system\caching\dependencies
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/caching/dependencies/CFileCacheDependency.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/caching/dependencies/CFileCacheDependency.php
public
|
|
protected
mixed
|
#
generateDependentData( )
Generates the data needed to determine if dependency has been changed. This method returns the file's last modification time. |
evaluateDependency(),
getDependentData(),
getHasChanged(),
resetReusableData()
|
public
string
|
$fileName |
|
#
the name of the file whose last modification time is used to check if the dependency has been changed. |
$reuseDependentData
|
$dependentData,
$hasChanged
|