Issue #2236167 by znerol: Use request stack in cache contexts.