DatabaseBackend::DEFAULT_MAX_ROWS

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Cache/DatabaseBackend.php \Drupal\Core\Cache\DatabaseBackend::DEFAULT_MAX_ROWS
  2. 8.9.x core/lib/Drupal/Core/Cache/DatabaseBackend.php \Drupal\Core\Cache\DatabaseBackend::DEFAULT_MAX_ROWS
  3. 11.x core/lib/Drupal/Core/Cache/DatabaseBackend.php \Drupal\Core\Cache\DatabaseBackend::DEFAULT_MAX_ROWS

The default maximum number of rows that this cache bin table can store.

This maximum is introduced to ensure that the database is not filled with hundred of thousand of cache entries with gigabytes in size.

Read about how to change it in the Cache API topic.

File

core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 30

Class

DatabaseBackend
Defines a default cache implementation.

Namespace

Drupal\Core\Cache

Code

const DEFAULT_MAX_ROWS = 5000;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.