PHP Класс 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.
Показать файл
Открыть проект
Примеры использования класса
Открытые свойства
Свойство |
Тип |
Описание |
|
$fileName |
|
the file path or path alias whose last modification time is used to
check if the dependency has been changed. |
|
Защищенные методы
Описание методов
generateDependencyData()
защищенный Метод
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 |
Результат |
mixed |
the data needed to determine if dependency has been changed. |
Описание свойств
$fileName публичное свойство
the file path or path alias whose last modification time is used to
check if the dependency has been changed.