Define cache rules