Disable Drupal (>=8.0) caching during development

Note: This page has been moved to https://www.drupal.org/docs/develop/development-tools/disable-caching.

Disabling Drupal 8, Drupal 9 and Drupal 10 caching (render cache, dynamic page cache, Twig cache) during development is useful for seeing changes without clearing the cache.

Prefetch Cache

The Prefetch Cache module adds a prefetch feature to drupal in a browser independent and reliable way. In fact in can be described as personalized pre-warmed page cache that even works for pages that are commonly not cacheable for authenticated users.

It is a kind of the link prefetching provided by some browsers.

style don't create the resource when clean URL is enabled with Nginx like inverse proxy

with bitrix enviroment installed like a base webserver, my drupal installation show some issues to create the styles.

After check permissions from filesystem and the configuration of apache they don't show error then check the nginx configuration the problem could be the next couple of lines

with bitrix enviroment
/etc/nginx/bx/conf/bitrix.conf

if you don't have bitrix and just have nginx the config file is in
/etc/nginx/nginx.conf

Boost: store the cache in a different directory

By default, boost stores its cache in the "cache" directory located at the root of the website.

A frequent request is to store the cache on a per-site directory under other files generated by the site, in sites/example.org/files/cache/, for example. However, this is likely to cause issues with how the Drupal htaccess rules for multi-site work.

Note that the default way boost stores the cache does support multi-sites. You should not need to change this setting unless you have specific requirements.

If you need to change the location of the cache:

Boost 7.x: Static page caching for your website

Boost is a contributed module that provides static page caching for Drupal websites. It can help you realize a significant performance increase for personal blogs, small business, corporate sites, portals and directories that receive mostly anonymous traffic. For shared hosting this is your best option in terms of improving performance and enhancing your website visitor's experience.

Features

  • Improves website performance for anonymous users.
  • On-Demand page caching.
  • Supports shared, VPS and dedicated hosting.
  • Supports and designed for Apache.
  • Nginx and IIS semi-supported.
  • Supports Multi-site Installations.
  • Supports HTML, XML, CSS, JavaScript, JSON/AJAX.
  • Built-in htaccess file generator if needed.
  • Page cache status/flush block. See: #1448476: Admin status block in 7.x-1.x
  • Gzip page compression. (partial, see: #1416214: Basic gzip support for 7x)
  • Adjustable cache lifetimes.
  • Uses cron run to trigger cleaning of cached files.
  • Choose which pages are cached.
  • Injects HTML comment to provide easy verification of Boost.
  • Easy to install and setup.

Pages

Subscribe with RSS Subscribe to RSS - cache