Fixed an inverted comparison on cache time expiry