You are here

constant DatabaseBackend::DEFAULT_MAX_ROWS in Drupal 8

Same name and namespace in other branches
  1. 9 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 28

Class

DatabaseBackend
Defines a default cache implementation.

Namespace

Drupal\Core\Cache

Code

const DEFAULT_MAX_ROWS = 5000;