-
nginex β
committed d1552306 on 1.0.x
Issue #3322896: Cache getBlockTypeByUuid
-
nginex β
committed d1552306 on 1.0.x
Automatically closed - issue fixed for 2 weeks with no activity.
When opening layout builder, the restrictions check for each block if the user's role have permission to access this.
This calls getBlockTypeByUuid for each block available. This function does a DB call, which i saw being run 2000+ times in a project.
In this case i think it's because content blocks are also used and checked.
Find a site where loading layout builders take long.
We can cache this function, so the DB query does not run 2K times.
Check if we can refactor things here to stop calling this method 2K times.
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Issue #3322896: Cache getBlockTypeByUuid
Automatically closed - issue fixed for 2 weeks with no activity.