framework
framework copied to clipboard
[2.x] perf(tags): prevent loading tag state if loaded previously
This PR is similar to #4008, but targets the 2.x branch. I have not been able to verify if the issue described in #4007 occurs in 2.x, as the Clockwork extension doesn't work with this version, preventing me from observing database queries. Nevertheless, implementing these changes is a precautionary step that can potentially prevent similar issues in the 2.x branch.
Necessity
- [x] Has the problem that is being solved here been clearly explained?
- [x] If applicable, have various options for solving this problem been considered?
- [x] For core PRs, does this need to be in core, or could it be in an extension?
- [x] Are we willing to maintain this for years / potentially forever?