Disabling post-publish for quick publish

Cache invalidation occurs during post-publish for catalog and search. You can disable the post-publish for quick publish for the catalog or search resource managers to avoid duplicate cache invalidation.

Procedure

  1. Update the resource-containers.xml file.
    1. Go to the WC_eardir/xml/content-management directory for your site.
    2. Open the wc-resource-containers.xml file for editing.
    3. Find the <wc:QuickPublishConfiguration> element in the file.
    4. Add the following postPublish parameter within the element:
      <wc:QuickPublishConfiguration>
      <wc:Publisher className="com.ibm.commerce.context.content.resources.publish.DefaultJDBCContentPublisherImpl"
      initParameters=[other-parameters] postPublish="false" [other-parameters]/ >
      </wc:QuickPublishConfiguration>
  2. Save your changes and close the file.
  3. Update your deployment package to include your updated files. For more information, see Building a custom Docker image from a deployable package.
  4. Restart your HCL Commerce server to apply the changes to your site.