TCacheDependency is the base class implementing
Descendant classes must implement
Prado\Caching\ICacheDependency::getHasChanged() to provide
actual dependency checking logic.
The property value of
HasChanged tells whether
the dependency is changed or not.
You may disable the dependency checking by setting setEnabled Enabled to false.
Note, since the dependency objects often need to be serialized so that they can persist across requests, you may need to implement __sleep() and __wakeup() if the dependency objects contain resource handles which are not serializable.
Currently, the following dependency classes are provided in the PRADO release:
Prado\Caching\TFileCacheDependency: checks whether a file is changed or not
Prado\Caching\TDirectoryCacheDependency: checks whether a directory is changed or not
Prado\Caching\TGlobalStateCacheDependency: checks whether a global state is changed or not
Prado\Caching\TChainedCacheDependency: checks whether any of a list of dependencies is changed or not
Direct known subclassesPrado\Caching\TApplicationStateCacheDependency, Prado\Caching\TChainedCacheDependency, Prado\Caching\TDirectoryCacheDependency, Prado\Caching\TFileCacheDependency, Prado\Caching\TGlobalStateCacheDependency
Author: Qiang Xue firstname.lastname@example.org
Located at Caching/TCacheDependency.php