On a project my firm is involved with we are using render cache to save on PHP memory overhead (works great btw). The problem is there doesn't seem to be any inbuilt mechanism in core to turn render caching off. This is very inconvenient for local development. I would also imagine that there might be other use cases where it would be nice to able to turn it off. It seems the only way to accomplish this currently is to wrap the addition of '#cache' to render arrays in a custom procedural helper. The patch I'm proposing adds a render_cache check in drupal render before sending the output of an array to cache_set/cache_get. The ideal solution would create a variable that could be set to FALSE but which defaults to TRUE in order to maintain backwards compatibility.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | drupal-render_cache_setting-2573513-8.patch | 1.2 KB | mrmikedewolf |
Comments
Comment #2
mrmikedewolf commentedComment #3
mrmikedewolf commentedComment #4
mrmikedewolf commentedComment #5
mrmikedewolf commentedUpdated patch use #4.
Comment #6
mrmikedewolf commentedFix patch name.
Comment #7
mrmikedewolf commentedComment #8
mrmikedewolf commentedComment #9
mrmikedewolf commentedUse #8. Feedback is much appreciated!
Comment #10
mrmikedewolf commentedComment #11
mrmikedewolf commentedComment #12
avpadernoComment #14
avpaderno