- ๐ธ๐ฎSlovenia KlemenDEV
No occurrence of drupal_js_cache_files in the codebase, it seems this is stale stuff. The website we spotted this on used to run on all versions starting D7, so maybe it is an artifact from these times.
- ๐จ๐ญSwitzerland Berdir Switzerland
Core removed any usage of the string system.drupal_js_cache_files 12 years ago when it was renamed to system.js_cache_files. And that too was deprecated and removed in in 10.2 or 10.1.
Whatever you have there is probably not core or at least not actively used anymore. Try searching your code base for it, if you don't find anything, you can delete those records. FWIW, since this is a cache collector, if nobody *uses* those state keys, they will also not end up in the cache.
- ๐ง๐ชBelgium kristiaanvandeneynde Antwerp, Belgium
Could you file a new issue about this please? If core is setting that much data through drupal_js_cache_files, that definitely needs a dedicated issue.
- ๐ธ๐ฎSlovenia KlemenDEV
We have observed that on some of our websites
SELECT name, LENGTH(value) FROM key_value WHERE collection = 'state' ORDER BY LENGTH(value) DESC LIMIT 100;
yields mength numbers in orders of 200k, which is not ok according to https://www.drupal.org/node/3177901 โ .
The vast majority of the length comes from drupal_js_cache_files.
https://www.drupal.org/node/3177901 โ recommends optimizing if
Sites with more than 100 entries and/or a total value size/length of 100,000 should review their specific entries using the following query and either optimize their usage or disable state caching as a temporary measure:
but how can I optimize something that originates from the core?