Export rules are an instrument to reduce the number of resources that are re-exported by an export after publish. Using static export after publish, OpenCms has to determine the resources that have to be re-exported from the list of published resources. Since dependencies can be very involved, it is in most cases impossible to determine what the re-export candidates are. Thus, OpenCms uses exports more resources than necessary. Typically all dynamic resources are be re-rendered and exported when only a single dynamic resource is published.
Export rules specify dependencies between resources. Thus, they tell OpenCms explicitly which resources have to be re-exported after a special resource is published. Thus, good export rules can reduce publish time substantially.
The export rules, as also all the other configuration settings for the static export, are configured in ${WEBAPP_HOME}/WEB-INF/config/opencms-importexport.xml
.
An export rule needs following data.