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

PHPBB3-13232
Merge pull request #4 from nickvergessen/naderman-ticket/13232

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