Свойство | Тип | Описание | |
---|---|---|---|
$tags | a list of tag names for this dependency. For a single tag, you may specify it as a string. |
Метод | Описание | |
---|---|---|
invalidate ( |
Invalidates all of the cached data items that are associated with any of the specified [[tags]]. | |
isChanged ( $cache ) |
Метод | Описание | |
---|---|---|
generateDependencyData ( |
Generates the data needed to determine if dependency has been changed. | |
getTimestamps ( |
Returns the timestamps for the specified tags. | |
touchKeys ( |
Generates the timestamp for the specified cache keys. |
protected generateDependencyData ( |
||
$cache | the cache component that is currently evaluating this dependency | |
Результат | mixed | the data needed to determine if dependency has been changed. |
protected getTimestamps ( |
||
$cache | ||
$tags | string[] | |
Результат | array | the timestamps indexed by the specified tags. |
public static invalidate ( |
||
$cache | the cache component that caches the data items | |
$tags | string | array |