[CORE][Cache] Implement listPushRight

This commit is contained in:
2022-02-27 00:29:26 +00:00
parent b630d530f4
commit d4c908c194
4 changed files with 45 additions and 8 deletions

View File

@@ -290,7 +290,7 @@ class Note extends Model
'use_canonical' => $ap_tag->get('canonical') ?? false,
'language_id' => $lang_id ?? null,
]));
Cache::pushList("tag-{$canonical_tag}", $obj);
Cache::listPushLeft("tag-{$canonical_tag}", $obj);
foreach (Tag::cacheKeys($canonical_tag) as $key) {
Cache::delete($key);
}