There is a weird interaction between nginx and admin_menu, that effectively makes admin_menu disappear (with default nginx settings).
There is a comment that says to put the setting (admin_menu_cache_client = FALSE) in local.settings.php, but since we want it for all sites I modified the template.
Note that my patch has no code to differentiate nginx (the SERVER_SOFTWARE says HTTP for some reason?), so this could be a very minor performance loss on apache for admin users.
Despite trying, I didn't manage to fix this through nginx vhost settings, but I think the code might just be over my head, so if someone wants to try and do that instead, it might be a better solution.
Comment | File | Size | Author |
---|---|---|---|
admin_menu_no_cache.patch | 711 bytes | gboudrias |
Comments
Comment #1
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedComment #2
bgm CreditAttribution: bgm commented+1, this is also what BOA does:
https://github.com/omega8cc/boa/blob/7e4c647906ca2ae3f15e868eb5907f77529...
Comment #3
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedComment #4
omega8cc CreditAttribution: omega8cc commentedWe are using
$conf['admin_menu_cache_client'] = FALSE;
for years. Let's commit this if this helps also for users not using BOA.Comment #5
omega8cc CreditAttribution: omega8cc commentedWe could make it server specific by checking for
$_SERVER['SERVER_SOFTWARE']
, if that helps for Apache users. We could check for /nginx/ I think.Comment #6
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedThanks, pushed to 7.x-3.x branch.