it seems ViewsDataCache::set() is never called, so cacheGet() never succeeds and getData() rebuilds the views_data info each time a view is displayed ?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Issue tags: +VDC

tagging

Berdir’s picture

Assigned: Unassigned » Berdir

Looking into this.

Berdir’s picture

Assigned: Berdir » Unassigned
Status: Active » Needs review
FileSize
2.79 KB
2.79 KB

Oh man, that's just bad.

Forgot the event listener tag on the kernel destructor. Silly me.

Fixed that and improved the tests to actually terminate the kernel and also add explicit coverage for the path alias whitelist which is just as broken right now. Is there a similar place where we could add a similar assertion for the views data cache?

Berdir’s picture

And now I'm uploading the test-only patch twice. It's getting better and better ;)

yched’s picture

Ooh. I had no idea we had this pattern of cache classes that wrote on destruct.
Interesting for FieldInfo :-)

Anyway, patch looks good.

yched’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

D'oh. :(

Thanks for the patch, Berdir.

Committed and pushed to 8.x.

Automatically closed -- issue fixed for 2 weeks with no activity.