System plugin DB queries run on every page load with no caching #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
MokoOG::onBeforeCompileHead()executes 1-3 database queries on every frontend page load:loadOgData()- always runsfindImage()- runs if no custom image, queries#__content+ potentially#__categoriesJsonLdBuilder::buildArticle()- queries#__contentJOIN#__usersOn a high-traffic site, this adds significant DB load with no caching.
Acceptance Criteria
Files
src/packages/plg_system_mokoog/src/Extension/MokoOG.phpsrc/packages/plg_system_mokoog/src/Helper/JsonLdBuilder.phpBranch created:
feature/38-system-plugin-db-queries-run-on-every-pa