Closed (fixed)
Project:
Klaro Cookie & Consent Management
Version:
3.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Mar 2026 at 21:54 UTC
Updated:
14 Jul 2026 at 08:35 UTC
Jump to comment: Most recent
Comments
Comment #2
jan kellermann commentedWe could add caching here:
https://git.drupalcode.org/project/klaro/-/blob/3.x/src/Utility/KlaroHel...
The cache key must take the given parameters into account.
Comment #4
kazajhodo commentedAdded caching for getApps() result, keyed by arguments, per request, with test.
Comment #5
kazajhodo commentedComment #7
jan kellermann commentedLooks good, Thank you very much.
I fixed a small PHPCS warning and opened the MR.
Waiting for RTBC. @catch ?
Comment #8
kazajhodo commentedNp, nice!
Comment #9
catchIt would be slightly better to inject the cache.memory bin and use that rather than a raw protected property - e.g. theoretically would allow the entity list cache tag to be added to the cache item so that changes in the same request are reflected automatically, although not sure that would be a real issue in practice.
Comment #10
kazajhodo commentedI think usually this is the right call; but I also agree with your leaning... this likely is not a real issue in this specific case.
The tagged bin would self-heal, but on an admin form save its not possible to run into the issue, right? We'd be adding dependencies for a case we'd never encounter.
However, you are a wizard, so if you think its worth, I'll add it in.
Comment #11
daften commentedI tested this on a project where Klaro was having quite a bit of impact due to the amount of fields, and this worked great. No issues at all. In fact I had test-driven the same basic change locally before finding this MR.
Thanks!
Comment #12
jan kellermann commented@catch - what is your opinion? RTBC or back to needs work regarding to your comment 9?
Comment #13
catch@jan I think that's optional and could be done in a follow-up.
Comment #15
jan kellermann commentedThank you all for your work!