Issue #2568171 by Cottser, dawehner, hussainweb, Wim Leers, cilefen, znerol: Upgrade to Twig 1.22 and implement our own cache class