Last active
August 29, 2015 13:59
-
-
Save star-szr/10997441 to your computer and use it in GitHub Desktop.
Disable cache_render or other cache bins in Drupal 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
cache.backend.memory: | |
class: Drupal\Core\Cache\MemoryBackendFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// First line will not be needed after https://drupal.org/node/2241633. | |
// For more cache docs see https://api.drupal.org/api/drupal/core%21modules%21system%21core.api.php/group/cache/8 | |
$GLOBALS['conf']['container_yamls'][] = $conf_path . '/services.yml'; | |
$settings['cache']['bins']['render'] = 'cache.backend.memory'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Huge thanks to @Berdir and @sun in IRC for helping me put this together!
Put the
services.yml
insites/default/services.yml
and add the lines to yoursettings.php
.