Allow for disabling module function through settings.php

Created on 25 July 2023, 10 months ago
Updated 15 August 2023, 10 months ago

Whenever I import my database from live to my local environment I have to uninstall pantheon_advanced_page_cache before the local site will respond.

It would be great if this module's functionality could be disabled per environment in settings.php or settings.local.php

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States derekw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @derekw
  • πŸ‡ΊπŸ‡ΈUnited States David Strauss San Francisco, CA

    We should probably just make the module more resilient/self-disabling when it's not actively running on Pantheon. Do you know where it's hanging?

  • πŸ‡ΊπŸ‡ΈUnited States derekw

    When the module is installed locally I get a 502 Bad Gateway error from my local nginx server.

    The Nginx error log has:

    upstream sent too big header while reading response header from upstream, client: 10.211.55.2, server: local.mydomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "local.mydomain.com"

    Does that help?

  • πŸ‡ΊπŸ‡ΈUnited States David Strauss San Francisco, CA

    I see. This is about the large Surrogate-Key header. We should avoid setting that when we're not on the Pantheon platform -- unless perhaps re-enabled in settings.php.

  • πŸ‡ΊπŸ‡ΈUnited States codechefmarc

    We use Config Split ( https://www.drupal.org/project/config_split β†’ ) for this purpose and seems to work really well. That said, I'd love the module to know if it's running on Pantheon vs locally and adjust accordingly.

Production build 0.69.0 2024