Submitted by Thao Huynh on December 3, 2018 - 08:25
Disable cache for a custom page from route declaration.
If you want to disable cache for a custom controller (Custom module), You have no_cache option (YOUR_MODULE.routing.yml).
File : mymodule.routing.yml
Submitted by Thao Huynh on November 25, 2015 - 22:44
Open settings.php add these lines:
$settings['container_yamls'] = DRUPAL_ROOT . '/sites/development.services.yml';
$settings['cache']['bins']['render'] = 'cache.backend.null';
Use drush with command drush cr to clear all cache