getting rid of regular expressions in expiration of cache