Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
ckeditor.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
11 Oct 2013 at 10:12 UTC
Updated:
29 Jul 2014 at 23:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
wim leersTrivial :)
Comment #2
gábor hojtsyDiscussed this with @Wim Leers:
That makes sense. I don't think individual added cache tags need any test coverage, so this should be fine.
Comment #3
webchickCommitted and pushed to 8.x. Thanks!
Comment #4
berdirUh, why?
There's an API to clear the cache, $plugin->clearCachedDefinitions(). Cache tags should only be used if this is supposed to be cleared together with other things.
It is by design that this doesn't use cache tags by default, as they are right now a considerable overhead (every tag adds another query)
Comment #5
wim leers#4: then why do
LocalActionManagerandFilterPluginManagerdo the same? In fact, why is it part of thesetCacheBackend()signature at all?I do see how
PluginManager::clearCachedDefinitions()can be used to achieve the same though. I feel silly now :( :P. But at the same time, if it shouldn't be done, then why is it part of the API at all?And yes,
clearCachedDefinitions()is more efficient because it doesn't need to add cache tags. I just always thought thatclearCachedDefinitions()was a static cache, not a full-on cache, that's why I didn't think of looking at that.Comment #6
webchickOk, reverted for now, since it looks like this needs more discussion.
Comment #7
tim.plunkett#5, quoting #4 again:
FilterPluginManager absolutely needs this because filter.module used cache tags previously, see filter_formats()
LocalActionManager likely doesn't need it, we should open a separate issue to consider removing it.
I think this is won't fix.
Comment #8
gábor hojtsyAll right, its rolled back already :)
Comment #9
wim leers"won't fix" indeed.
Sorry guys :(