diff --git a/core/core.api.php b/core/core.api.php index d86cafb2e6..9f2f7f7ece 100644 --- a/core/core.api.php +++ b/core/core.api.php @@ -609,12 +609,12 @@ * For cache bins that are stored in the database, the number of rows is limited * to 5000 by default. This can be changed for all database cache bins: * @code - * $settings['database_cache_max_rows']['default'] = 50000; + * $settings['database_cache_max_rows']['default'] = 50000; * @endcode * * Or per bin (in this case we all infinite entries): * @code - * $settings['database_cache_max_rows']['bins']['dynamic_page_cache'] = -1; + * $settings['database_cache_max_rows']['bins']['dynamic_page_cache'] = -1; * @endcode * * For monitoring reasons it might be useful to figure out the amount of data diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php index 6b99a14ec5..c6e4a11295 100644 --- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php +++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php @@ -27,7 +27,7 @@ class DatabaseBackend implements CacheBackendInterface { const DEFAULT_MAX_ROWS = 5000; /** - * -1 means "no maximum". + * -1 means infinite allows numbers of rows for the cache backend. */ const MAXIMUM_NONE = -1;