Redis – Adding tags to cache entry takes a long time using PhpFastCache with Memcached driver
Here is the code: public static function applyInvalidationTags(ExtendedCacheItemInterface $cacheItem, $values): void { $isSomething = false; $tags = []; foreach ($values[0] as $value) { $tags[] = 'product_id_' . $value->id; if (!$isSomething && $value->isSomething) { $tags[] = 'isSomething'; $isSomething = true; }…