Collect the set cache events and size of the cached objects

Created on 2 April 2024, 5 months ago
Updated 5 June 2024, 3 months ago

Problem/Motivation

I think we could benefit a lot by recording not only the getting cache event with hit and miss, but also the setting event, that could also give us more info about read/write ratio.
Another thing we could benefit from would be to record the size of each cached item. Becomes useful when someone is using external service for caching and would like to analyze the bandwidth issues.

Proposed resolution

Implement recording the cache set in CacheBackendWrapper::set() and CacheBackendWrapper::setMultiple().
Add the 'size' parameter to the record which consist of counted length of the serialized data.
Add corresponding parameters as opt-in for the given features.

โœจ Feature request
Status

Needs work

Version

2.0

Component

Code

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024