fixed bad cache expiration checking
Merge remote-tracking branch 'mongithub/master'