Performance: Cache tags
MEDIUM IMPACT
Cache tags affect how efficiently cached data is invalidated and retrieved, impacting server response time and perceived page speed.
Cache::tags(['users', 'posts'])->flush(); // clears only tagged cache entries
Cache::flush(); // clears entire cache indiscriminately
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full cache flush | N/A | N/A | N/A | [X] Bad |
| Cache tags flush | N/A | N/A | N/A | [OK] Good |