跳到内容

缓存管理器

编辑此页

缓存移除

CacheManager 允许移除缓存的图片。

移除特定图片和一个过滤器集合的缓存

1
$cacheManager->remove($path, $filter);

移除特定图片在所有过滤器集合中的缓存

1
$cacheManager->remove($path);

移除图片列表在过滤器集合列表中的缓存

1
2
3
4
$cacheManager->remove(
    [$pathOne, $pathTwo],
    ['thumbnail_233x233', 'thumbnail_100x100']
);

清除整个缓存

1
$cacheManager->remove();
本作品,包括代码示例,根据 Creative Commons BY-SA 3.0 许可协议授权。
目录
    版本