Skip to main content

cache

Important Things to Setup Authcache in Drupal

We need some kind of Caching system to deliver quickly the pages, it will help to improve the site performance and usability. Drupal has a default built in cache system but it is not enough for some of the complex sites, So we are choosing some kind of complex caching systems like Authcache, Memcached, Varnish. Authcache works with both Memcached and Varnish, we can use them as a backend of the caching process.

Pathirakaliappan Tue, 03/14/2017 - 07:02
Setup Authcache in Drupal
Cache disable

Disable Drupal 8 cache during development

We know Drupal 8 has a heavy caching mechanism, so we need to clear cache for changes made in twig file or some other file to reflect in the site. Basically, a themer or developer won't love the caching system on the development stage. So it is better to disable cache on the development stage rather than clearing cache for every change being made.

And here are the steps to disable cache and save your valuable time:

  • Copy and rename the sites/example.settings.local.php file as sites/default/settings.local.php

Drupal 8 block caching

The approach to custom block caching is different in Drupal 8 from Drupal 7. In Drupal 8, all renderable arrays are cacheable, even those returned by custom block.

Examples:

  • Some expensive-to-calculate data depends on the active theme: different results for different themes. Then you'd vary by the theme cache context.

Rajamohamed Thu, 03/24/2016 - 01:30
Drupal 8 catching
Caching in Drupal

Caching in Drupal

Drupal comprises several layers of execution and it obviously consumes pretty much time to render content from dynamic PHP code. Caching is a key technique to maximize the performance of Drupal. Before adopting a caching mechanism in Drupal, one must consider the type of site and the type of users coming to the site. Not all sites could have same caching mechanism.

Caching techniques could be classified at various levels depending on type of data being cached and the user affected. Drupal can have broadly two kinds of users.

manifest cache

Cache manifest in drupal

This blog gives you an understanding about cache manifest in Drupal. Cache manifest is used to cache pages in local server to use it when there is no network connection. This can be easily done by adding attribute "manifest="filename.appcache" to the HTML tag as mentioned below:

Subscribe to cache