Add cache rewriting for ratings on purchase (bug 838848)