Skip to content

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

Open
Salvialf wants to merge 2 commits into
developfrom
refactor/plugin-full-handling
Open

Make plugin::byId/isInstalled cache handling and full parameter typing explicit#3453
Salvialf wants to merge 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
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.

1 participant