Rewrite cache module