Add support to flushing product and category pages when using enterprise rewrites

@jonpday or @aligentjim Could one of you please review?