Closed (won't fix)
Project:
Administration menu
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 10:20 UTC
Updated:
1 Mar 2012 at 19:42 UTC
I often have stuff hapening in a hook_init that I only want to happen in GET requests. Messages and redirects etc should often not happen in a POST request. They should also not happen in the admin menu XHR request, which is a GET.
If it were a POST request, I didn't have to check method and URL...
(Don't start about REST, because it's not REST anyway. Let's not pretend we're going for semantic perfection.)
Comments
Comment #1
sunPOST requests skip caching at various layers in the first place, so that's not an option.
Comment #2
rudiedirkx commentedThe admin menu's HTML caching? Yeah, that makes sense.
I also read something, somewhere about caching the admin menu client side..? How's progress on that? (I can't find an issue for that.)
Comment #3
sunThe client-side caching is what defines the 3.x product line (among other architectural changes).
Comment #4
sunI'm sorry, but I don't see why this should be changed, and even more importantly, why you'd want to do something in hook_init() whenever the admin menu is pulled.
Comment #5
rudiedirkx commentedYou said that a month ago =) I agreed/surrendered.