One of the site has fairly large cachetags table at over 418K records. Is there a way to limit the size of this table.
This table is not cleared on cache clear.
Since Drupal 8.4 there has been a way to limit the size of cache tables, as noted in change record. However, these settings do not affect the size of cachetags table. I tried adding the following to the settings.php file, but these don't work.
$settings['database_cache_max_rows']['cachetags'] = 50000;
$settings['database_cache_max_rows']['bins']['cachetags'] = 50000;
- Is it safe to limit or purge the cachetags table?
- Is there a way to limit the size of cachetags table without resorting to manually truncating the table?