Skip to content

How to disable caching during development. #1318

Open
@bgronek

Description

@bgronek

I thought I'd drop this as it took a bit of work to piece it together. I needed to disable all caching in order to make the development / debugging workflow more efficient. Here's how.

  1. Create and enable a local development settings php file and accompanying development .yml file as described in sites/example.settings.local.php.
  2. Add the following entries to your development yml file. This will disable all caches related to graphql processing.
    services: cache.graphql.ast: class: Drupal\Core\Cache\NullBackend arguments: [ graphql_ast ] cache.graphql.definitions: class: Drupal\Core\Cache\NullBackend arguments: [ graphql_definitions ] cache.graphql.results: class: Drupal\Core\Cache\NullBackend arguments: [ graphql_results ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions