How to disable all cache in drupal 8

1. Goto sites/default/settings.php file
and find below code and uncomment the code ( code line id 712 )
if (file_exists(__DIR__ . '/settings.local.php')) {
include __DIR__ . '/settings.local.php';
}
2. Goto site folder and copy and paste example.settings.local.php inside default folder
and rename to settings.local.php
3. Again goto sites folder and copy and paste development.services.yml to default
folder
4. Clear all cache -> admin/config/development/performance
Note: you must clear the cache
5. Goto sites/default folder and open settings.local.php, and uncomment below lines
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
6. Clear cache again
7. open development.services.yml file from sites/default folder and replace the ode with following one
# Local development services.
#
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
cache: false
services:
cache.backend.null:
class: DrupalCoreCacheNullBackendFactory
8. Almost done
9. Make sure below code is correct from sites/default/settings.local.php path
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
$settings['extension_discovery_scan_tests'] = TRUE;
10. Clear cache again

Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.