Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2010 at 15:45 UTC
Updated:
7 Mar 2015 at 11:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
catchDidn't finish that sentence...
the use case for us is to disable a node render from being cached when a video thumbnail is 'waiting for encoding' - once it's encoded we'd have the proper thumbnail and allow it to go into the cache.
Comment #2
moshe weitzman commentedAnd that applies to the whole request, even unrelated parts of $page? This seems rough to me.
Perhaps we would be better off recognizing a #nocache property on elements. If thats set on any of the child elements, then we ignore #cache on any parent. That would require us to keep track of #nocache as we recurse up the tree but we really should be doing that for other properties like #attached. See #859602: #cache does not record the #attached declared in child elements.
I know I made this more complex, but the solution proposed here is only a little better than our current "figure it out yourself". i would think that a custom solution means adding a very early #pre_render on any elements which might be invalidated and in the pre_render function you check if they are cacheable. if not, remove #cache on the element.
Comment #3
thedavidmeister commentedWe've come a long way since this issue was opened...
I'm closing this.