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.

CommentFileSizeAuthor
admin_menu_no_cache.patch711 bytesgboudrias
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gboudrias’s picture

Title: Fix nginx admin_menu problem (with cache_setting?) » Fix nginx admin_menu problem (with cache setting?)
bgm’s picture

Status: Needs review » Reviewed & tested by the community
gboudrias’s picture

Issue tags: +Aegir 3.1
omega8cc’s picture

We are using $conf['admin_menu_cache_client'] = FALSE; for years. Let's commit this if this helps also for users not using BOA.

omega8cc’s picture

We could make it server specific by checking for $_SERVER['SERVER_SOFTWARE'], if that helps for Apache users. We could check for /nginx/ I think.

gboudrias’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, pushed to 7.x-3.x branch.

  • gboudrias committed c4070be on 7.x-3.x
    Issue #2539328 by gboudrias: Fix nginx admin_menu problem (with cache...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.