Return early from more cache tag operations

Created on 22 February 2024, 4 months ago
Updated 8 March 2024, 3 months ago

Problem/Motivation

Follow-up from πŸ“Œ Return early in CacheTagsChecksumTrait::isValid() (and possibly elsewhere) if there are no tags to check Active

@kristiaanvandeneynde wrote:

Only the top of CacheTagsChecksumDecorator::invalidateTags() because CacheTagsChecksumTrait already short-circuits if the list of tags is empty.
The top of CacheTagsChecksumDecorator::getCurrentChecksum()
The top of CacheTagsChecksumTrait::getCurrentChecksum() because it runs a bunch of code that will end up doing nothing if the list of tags is empty

Steps to reproduce

Proposed resolution

Return early from these methods, check if it changes the operations we count in the performance tests/send to open telemetry.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

Component
CacheΒ  β†’

Last updated about 13 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024