fix cache and session expirations