fixing expiration of cache