Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2014 at 12:37 UTC
Updated:
30 Nov 2015 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
borisson_Issue should be resolved with http://cgit.drupalcode.org/sandbox-daeron-2091893/commit/?id=78e48a1,
There's still a line in that invalidates the 'extension:views' cache, that should get removed if https://www.drupal.org/node/2370365 gets fixed.
Comment #2
drunken monkeyComment #3
swentel commentedHad it again - so we're still not clearing something - probably some views data
Comment #4
swentel commentedComment #5
swentel commentedbetter patch - weirdly enough adding is fine with just one flush.
Comment #6
swentel commentedAnd now final
Comment #7
borisson_Works and the code looks good.
Comment #9
borisson_Testbot--
Comment #10
drunken monkeyDo you mean "this line" or "these lines"? I.e., should the
\Drupal::cache('discovery')…line also go once that issue gets fixed?In any case, seems to make sense (more or less), thanks for posting!
Comment #11
borisson_This line, it's only
Cache::invalidateTags(array('extension:views'));that is linked in that other issue/Comment #12
drunken monkeyOK, thanks. I was just asking because the comment was also there in the other form, where he removed that line.
Apart from that, though, I think this should rather go into the index entity class, since it otherwise would only work when doing changes via the UI? Patch attached, please test whether this still fixes the issue for you!
(Also,
Views::viewsData()->clear()looks nicer than the explicit use of the cache tag, even though it seems to be the same. What, on the other hand,views_invalidate_cache()does is a bit beyond me.)Comment #13
borisson_Looks great.
Comment #15
drunken monkeyGood to hear, thanks for reviewing!
Committed.
Thanks again to both of you!