Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How I can disable templates caching in development mode?

Everytime when I change something in templates I have to clear cache manually. Is there some way to disable templates caching in development mode?

like image 722
wino Avatar asked Jun 06 '13 20:06

wino


People also ask

How do I disable caching in Drupal?

Navigate to admin/structure/views/settings/advancedCheck the Disable Views Data Caching option.


2 Answers

If you are using PHP5.5, then I would suggest configuring opcache in php.ini

opcache.revalidate_freq=0 

This value sets the time frequency when views should be updated from cache. This value is usually 60 seconds or so. Setting it to 0 will make your cache update every time.

like image 190
phoops Avatar answered Oct 01 '22 11:10

phoops


According to this request, change your application cache driver to array for the local environment.

like image 26
Vikas Khunteta Avatar answered Oct 01 '22 12:10

Vikas Khunteta