PHP Class yii\caching\FileDependency

If the last modification time of the file specified via [[fileName]] is changed, the dependency is considered as changed. For more details and usage information on Cache, see the guide article on caching.
Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends yii\caching\Dependency
Datei anzeigen Open project: yiisoft/yii2 Class Usage Examples

Public Properties

Property Type Description
$fileName the file path or path alias whose last modification time is used to check if the dependency has been changed.

Protected Methods

Method Description
generateDependencyData ( Cache $cache ) : mixed Generates the data needed to determine if dependency has been changed.

Method Details

generateDependencyData() protected method

This method returns the file's last modification time.
protected generateDependencyData ( Cache $cache ) : mixed
$cache Cache the cache component that is currently evaluating this dependency
return mixed the data needed to determine if dependency has been changed.

Property Details

$fileName public_oe property

the file path or path alias whose last modification time is used to check if the dependency has been changed.
public $fileName