entity_info:en
views:display
views:sort
views:filter
views:area
views:pager
views:query
views:join
views:style
views:row
views:cache
typed_data:types:en
views:exposed_form
field_types:en
field_formatter_types:en
filter_plugins:en
block_plugins:en

That's the list of cache requests of various plugin types that I get right now on the front page that just displays some nodes.

We should consider to use a cache collector to for example group all views plugin types together into a single cache. It will always request all of those when any is requested.

The others might be a bit more complicated, but grouping all entity/field/data caches together probably also makes sense, those are needed together too. entity info used to get big due to bundles and view modes, that is no longer in there, luckily.

Not sure about the API changes/additions, maybe cache collector needs to implement cachebackendinterface to work transparently and also support tags and so on...? Tagging with addition for now...

CommentFileSizeAuthor
#3 test.patch4.34 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

field types + widgets + formatters were also one single cache entry in D7.
Although, well, on most pages (that don't display form), the widget info is actually not needed.

catch’s picture

Priority: Normal » Major
Issue summary: View changes
dawehner’s picture

FileSize
4.34 KB

While just trying to write a prototype (which isnot even a cache collector) I wondered several things:

  • Do we want people require to use cache collectors rather then CacheBackends in all the places mentioned in the initial post
  • Do we want to support stored values in multiple cache bins? If yes, how can we distinct between them. My basic idea here was to register cache backends together with its stored CIDs
catch’s picture

sun’s picture

Status: Active » Postponed
catch’s picture

Status: Postponed » Closed (duplicate)

Moving this to duplicate. If the local cache issue turns out to be a dead end, we can re-open this.