[opencms-dev] Performance issues when opening links or galleries in OpenCMS 9.5.3
José Alberto Pazos Ferreiro
josealberto.pazos at usc.es
Thu Mar 2 13:19:34 CET 2017
Hi!
We are experiencing a performance issue in our OpenCMS 9.5.3 installation when opening links in structured content (via VfsFileWidget) or when opening the download or image galleries in the editor interface. After debugging the code we found that class "org.opencms.ade.galleries.CmsGalleryService" uses method "getGalleriesByType", which tries to scan all the existing resources of the site:
try {
galleries.addAll(
getCmsObject().readResources(
"/",
CmsResourceFilter.ONLY_VISIBLE_NO_DELETED.addRequireType(galleryTypeId)));
} catch (Exception e) {
LOG.error("Could not read site galleries: " +
e.getLocalizedMessage(), e);
}
On small websites this is not a problem but in our case, having thousands of resources and approximately 300 OUs, makes the galleries unusable. To solve this, we have modified the OpenCMS Core to read only the resources of the OU project to which the user editor belongs. Therefore, our question is:
Is there any way to modify this behavior without modifying the OpenCMS core?
Thank you very much in advance,
Regards!
--
Alberto Pazos
More information about the opencms-dev
mailing list