linkedin
  • Become a Seller

How to disable cache in Drupal?

Sandeep Singh . Oct 07, 2024

A:

To disable caching in Drupal, follow the steps given below: 

Copy the file

 /sites/example.settings.local.php 

to

 /sites/default/settings.local.php

In the

 settings.php 

file, uncomment the following line to include the settings file:

Ensure the following line is uncommented in

settings.local.php 

:

Disable CSS/JS aggregation by setting these configurations:

Disable render and dynamic page caching:

Ensure Twig debugging and caching are set correctly in

 development.services.yml 

:

This will disable caching and is ideal for development. However, remember to re-enable caching for production environments.

Oct 07, 2024

Was this helpful? upvote icon 0 downvote icon 0
img

Did not find the question you are looking for?

Get fast answers from real users and our software experts

menlaptop

Have a Question in Mind?

Get answers directly from verified users and our software experts

Software icon representing 20,000+ Software Listed 20,000+ Software Listed

Price tag icon for best price guarantee Best Price Guaranteed

Expert consultation icon Free Expert Consultation

Happy customer icon representing 2 million+ customers 2M+ Happy Customers