Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
token system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Nov 2016 at 09:10 UTC
Updated:
5 Apr 2017 at 22:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersComment #3
ginovski commentedChanged to cache.data.
Comment #4
berdirTested #2824547: Change ViewsData to use the default cache bin instead of discovery and this together:
Before:
After applying both patches, clearing cache and visiting a few pages to make sure the caches are filled again:
Maybe a few plugin types haven't been discovered yet, but I guess most of the things are there.
Comment #5
wim leersYay!
Comment #6
catchHmm so I'd actually put this in cache.default
cache.data is supposed to be for relatively unbounded, non-render stuff like the path alias cache. In case for example you wanted to use two different LRU cache bins, one for bounded and one for unbounded items.
Comment #7
wim leersComment #8
faline commentedChange to cache.default
Comment #9
felribeiro commentedComment #11
wim leersI added an additional test, I thought testbot just was having a bad moment there. But then I saw the problem:
The indentation of this has been changed, and is what's causing problems.
Comment #13
faline commentedThank you Wim Leers.
Correcting the previous patch
Comment #14
wim leersYay, thanks!
Comment #15
catchCommitted/pushed to 8.3.x, thanks!
Comment #17
wim leersDon't we also want to commit this to 8.2.x, to mitigate problems there too?
Comment #18
catchI thought about that, but it means that for example putting cache.discovery in the memory bin while developing will no longer disable caching for tokens and you'd have to add cache.default to your local settings too. If the cache item was actually failing to write to apcu on people's production sites then it'd seem definitely worth it, but afaict the parent issue has switched to just rationalising what goes in apcu - which is great and will help sites that are over or near their apcu limit, but there's some degree of trade-off.
Comment #20
xjm