Change record status: 
Project: 
Introduced in branch: 
8.2.x
Introduced in version: 
8.2.0
Description: 

FileCacheFactory can be configured with FileCacheFactory::setConfiguration().

The old order was:

  • 1. Explicit settings specified via FileCacheFactory::setConfiguration(), i.e. $conf['file_cache']['collection']
  • 2. Default settings specified via FileCacheFactory::setConfiguration(), i.e. $conf['file_cache']['default']
  • 3. Specific settings passed via FileCacheFactory::get(), i.e. FileCacheFactory::get('collection', $configuration);
  • 4. Default settings of FileCache (fallback)

The new order now is:

  • 1. Explicit settings specified via FileCacheFactory::setConfiguration(), i.e. $conf['file_cache']['collection']
  • 2. Specific settings passed via FileCacheFactory::get(), i.e. FileCacheFactory::get('collection', $configuration);
  • 3. Default settings specified via FileCacheFactory::setConfiguration(), i.e. $conf['file_cache']['default']
  • 4. Default settings of FileCache (fallback)

To disable FileCache use the newly introduced FileCacheFactoy::DISABLE_CACHE flag, which is independent of the order and overrides all. (See: https://www.drupal.org/node/2758325 for more information.)

Impacts: 
Module developers