[ticket/12620] Uses a cache directory per environment

PHPBB3-12620