[ticket/13232] Fix more issues with TTL and global cache file

PHPBB3-13232