I did Disable Drupal 8 caching during development step by step ( also finally rebuild the cache) but yet my changes in twig
files not take effects without rebuild the cache.
sites/default/services.yml :
parameters:
session.storage.options: { gc_probability: 1, gc_divisor: 100, gc_maxlifetime: 200000, cookie_lifetime: 2000000 }
twig.config: { debug: true, auto_reload: true, cache: false }
sites/default/settings.php :
if (file_exists(__DIR__ . '/settings.local.php')) {
include __DIR__ . '/settings.local.php';
}
sites/default/settings.local.php :
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
sites/development.services.yml :
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
parameters:
twig.config:
debug: true
auto_reload: true
cache: false
Where is the Problem?
$settings['cache']['bins']['render'] = 'cache.backend.null';
line