Flush cache on frontend event