Skip to content

Make plugin::byId/isInstalled cache handling and full parameter typing explicit - #3453

Merged
Salvialf merged 2 commits into
developfrom
refactor/plugin-full-handling
Aug 18, 2026
Merged

Make plugin::byId/isInstalled cache handling and full parameter typing explicit#3453
Salvialf merged 2 commits into
developfrom
refactor/plugin-full-handling

Conversation

@Salvialf

@Salvialf Salvialf commented Aug 2, 2026

Copy link
Copy Markdown
Contributor
  • plugin::byId() and plugin::isInstalled() no longer build cache keys with the $_id . '::' . $_full bool-to-string concatenation trick directly. Their static in-memory lookup cache is now encapsulated behind two private helpers, getFromCache() and addToCache(), so no call site needs to know the key format.
  • core/ajax/plugin.ajax.php now casts the full request parameter to bool before calling plugin::byId(), instead of relying on PHP's implicit weak-type coercion of a raw int/string value.

@Salvialf Salvialf added the changelog-other Use to generate release notes label Aug 2, 2026
@Salvialf
Salvialf merged commit 563b2c4 into develop Aug 18, 2026
6 checks passed
@Salvialf
Salvialf deleted the refactor/plugin-full-handling branch August 18, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-other Use to generate release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants