Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292250

drupal_render() should check #cache after #type and #pre_render so that elements can set default cache behaviour

$
0
0

At the moment it is impossible for elements with a #type to set default cache behaviour because #cache is checked before element_info() is called.

This is obviously for speed, we could check #cache a second time after #pre_render, in the same way that we check #printed a second time.

This would allow elements with #type to define default render cache behaviour.


Viewing all articles
Browse latest Browse all 292250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>