Caching results of system_region_list

Created on 24 December 2012, over 12 years ago
Updated 19 June 2025, 5 days ago

This is very preliminary but I figured someone might be bored over christmas and could provide some insight to me before I go digging into this too much.

Trying to debug site performance issues, I turn almost everything off and enable xhprof. Slowest function is t which was called 2000 times from system_region_list. That function was called 100 times by... drumroll.. context

The biggest culprits were
context_reaction_block::is_enabled_region (61 times) and
context_reaction_block::is_editable_region (40 times)

the 30 calls to system_region_list accounts for 30ms or 1/10 of the page load time.

Can the results of this function be cached by context?

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

system.module

Created by

πŸ‡ΊπŸ‡ΈUnited States joelcollinsdc

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024