[feature/session-storage-cache] Move and change cache class signature

PHPBB3-11705