<div dir="ltr">Hi,<div><br></div><div>I want to use CmsAfterPublishStaticExportHandler in order to pre-export the ressources so apache can serve these directly without asking opencms.</div><div><br></div><div>But I notice that from a publish to the online site is ready it takes 30 secs even though our installation isn't much other than the demo.</div>
<div><br></div><div>I've investigated and find that CmsStaticExportManager.writeResource(HttpServletRequest req, String exportPath, String rfsName, CmsResource resource, byte[] content) writes every single resource whether it's been updated or not...</div>
<div><br></div><div>Why? Isn't the function missing a if (exportFile < resource.getDateLastModified()) around the try catch?</div><div><br></div><div>The CmsStaticExportManager implementation can't be changed via configuration only the ExportHandler, correct?</div>
<div><br></div><div>So I have to create subclass CmsAfterPublishStaticExportHandler to override exportNonTemplateResources(CmsObject cms, List<CmsPublishedResource> publishedResources, I_CmsReport report) in order to use a subclass of CmsStaticExportManager?<div>
<br clear="all"><div>Med venlig hilsen / Kind regards,<br><br>Christian Bjørnbak<br><br>Chefudvikler / Lead Developer<br>TouristOnline A/S<br>Islands Brygge 43<br>2300 København S<br>Denmark<br>TLF: +45 32888230<br>Dir. TLF: +45 32888235<br>
</div>
</div></div></div>