CRM-15382 - Ensure dynamic resources are rebuilt after flushing