[ADD] before_cache callback