hermanspace.id
Tech Enthusiast
[ drupal 8] development settings
Sebelum membangun sebuah web atau themes drupal, berikut adalah langkah yang harus dilakukan :
1. Copy and rename the sites/example.settings.local.php to be sites/default/settings.local.php
2. Open settings.php file ini sites/default and uncomment these lines:
If (file_exists(_DIR_.’/settings.local.php’)) {
Include _DIR_.’settings.local.php’;
}
3. Comment this line so that you don’t see the weird error messages all the time
$config[system.logging’][‘error_level’]=’verbose’;
4. Uncomment these lines in settings.loca.php to Disable the render cache and disable Dynamic page Cache
$settings[‘cache’][‘bins’][‘render’]=’cache.backend.null’;
$settings[‘cache’][‘bins’][‘dynamic_page_cache’]=’cache.backend.null’;
5. Open development.services.yml in the sites folder and add the following block (to disable twig cache)
parameters :
Twig.config
debug: true
auto_reload: true
cache: false
6. Rebuilding the Caches
Under configuration>Development>Performance
Or
With Drush