Move cache flushing to marketplace.js for commonplace