Closed (duplicate)
Project:
Context
Version:
6.x-2.0-beta7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2009 at 16:33 UTC
Updated:
23 Dec 2010 at 15:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
damienmckennaHere's an initial patch that just adds a variable 'context_skip_hook_page_condition' which controls whether context_context_page_condition() is executed.
Comment #2
damienmckennaFYI one use case where this is useful is for sites that don't use the core menu system to control their navigation, so spending time to process menu_get_active_trail() is redundant.
Comment #3
damienmckennaUpdated patch.
Comment #4
yhahn commentedI'd like to know a little more about where you're seeing a performance hit here...
menu_get_active_trail()retrieves a static cache and is called bymenu_get_active_breadcrumb()and sometimesdrupal_get_title(). These are both called fromtemplate_preprocess_page()so unless a theme is flying solo in the preprocess page stack these functions will get called.Comment #5
damienmckennaI've requested the developer who created this patch (datacaliber) to provide more information, hopefully he will.
Comment #6
dstolThis would seem to be related to #811424: Only execute conditions/reactions that are used by contexts unless I am mistaken.
Comment #7
steven jones commentedDuplicate of #811424: Only execute conditions/reactions that are used by contexts