Move cache expire time to localenv

Fixed .gitignore to really ignore localenv.php and cache.
Moved expire time to a constant defined in localenv.php