To enable this cache warmer, you must add a "cache-warner" option to twig:config: <twig:config cache-warmer="true">