code: private void checkIfUpdateIsNeeded(CmsUUID structureId, String rootPath, int typeId) {
  
          try {
              I_CmsResourceType resType = OpenCms.getResourceManager().getResourceType(typeId);
              if ((resType instanceof CmsResourceTypeXmlContent)
                  && !OpenCms.getResourceManager().matchResourceType(
                      CmsResourceTypeXmlContainerPage.RESOURCE_TYPE_NAME,
                      typeId)) {
                  markForUpdate(structureId);
              }
          } catch (CmsLoaderException e) {
              // resource type not found, just log an error
              LOG.error(e.getLocalizedMessage(), e);
          }
      }
docs: Checks if the cache needs to be updated for the resource, and if so, marks the structure id for updating.<p>
  
  @param structureId the structure id for the resource
  @param rootPath the path of the resource
  @param typeId the resource type id