Closed (duplicate)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Page Manager
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2012 at 11:16 UTC
Updated:
9 Jan 2012 at 17:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
jhedstromI'm not positive if this works or not, but it might be as simple as implementing
hook_admin_pathsfor pages that have this option selected.Comment #2
jhedstromActually, it looks like this has been commented out since it slows performance so much. Presumably this hook is called on every page? Would caching page_manager's admin paths fix performance enough?
Comment #3
jhedstromHere's a patch that re-implements hook_admin_paths, but caches the results instead of processing them on every page load.
Comment #4
itangalo commentedConfirming that patch in #3 works.
Attached is a small extension of the patch, that also changes title and description for this option.
Comment #5
aschiwi commentedPatch in #4 works for me (Thanks!).
I had to apply the changes manually though, git apply -v didn't do anything, whether the patch was placed in ctools root directory or page_manager sub directory.
Comment #6
eclipsegc commentedThis is actually a duplicate of #1120028: Add caching to page_manager_admin_paths() for which I have a more comprehensive fix.