本文整理汇总了PHP中source\LuLu::deleteCache方法的典型用法代码示例。如果您正苦于以下问题:PHP LuLu::deleteCache方法的具体用法?PHP LuLu::deleteCache怎么用?PHP LuLu::deleteCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类source\LuLu
的用法示例。
在下文中一共展示了LuLu::deleteCache方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clearCachedData
public static function clearCachedData($id)
{
$fragment = self::findOne(['id' => $id]);
if ($fragment === null) {
return;
}
$cacheKey = self::CachePrefix . $fragment->code;
LuLu::deleteCache($cacheKey);
}
示例2: AddBatchItems
public static function AddBatchItems($role, $permissions)
{
self::deleteAll(['role' => $role]);
LuLu::deleteCache(RbacService::CachePrefix . $role);
foreach ($permissions as $key => $value) {
$newRelation = new Relation();
$newRelation->role = $role;
$newRelation->permission = $key;
$newRelation->value = is_string($value) ? $value : implode(',', $value);
$newRelation->save();
}
}
示例3: clearCachedConfig
public static function clearCachedConfig($id)
{
$cacheKey = self::CachePrefix . $id;
LuLu::deleteCache($cacheKey);
}
示例4: clearCachedMenus
public static function clearCachedMenus($category)
{
$cachekey = self::CachePrefix . $category;
LuLu::deleteCache($cachekey);
}
示例5: clearCachedData
public static function clearCachedData($fid)
{
$cacheKey = self::CachePrefix . $fid;
LuLu::deleteCache($cacheKey);
}
示例6: clearCachedTaxonomies
public static function clearCachedTaxonomies($category, $id)
{
LuLu::deleteCache(self::CachePrefix . $category);
LuLu::deleteCache(self::CachePrefix . $id);
}