code: protected void update(CmsUUID structureId, String rootPath, int type, CmsResourceState resState) {
  
          if (CmsResource.isTemporaryFileName(rootPath)) {
              return;
          }
          m_pathCache.replace(structureId, rootPath);
          if (isSitemapConfiguration(rootPath, type)) {
              m_workQueue.add(structureId);
          } else if (isModuleConfiguration(rootPath, type)) {
              LOG.info("Changed module configuration file " + rootPath + "(" + structureId + ")");
              m_workQueue.add(ID_UPDATE_MODULES);
          } else if (isElementView(type)) {
              m_workQueue.add(ID_UPDATE_ELEMENT_VIEWS);
          } else if (m_state.getFolderTypes().containsKey(rootPath)) {
              m_workQueue.add(ID_UPDATE_FOLDERTYPES);
          } else if (isMacroOrFlexFormatter(type, rootPath)) {
              try {
                  String path = CmsResource.getParentFolder(CmsResource.getParentFolder(rootPath));
                  path = CmsStringUtil.joinPaths(path, ".config");
                  CmsResourceFilter filter = CmsResourceFilter.IGNORE_EXPIRATION;
                  if (m_cms.existsResource(path, filter)) {
  
                      CmsResource config = m_cms.readResource(path, filter);
                      m_workQueue.add(config.getStructureId());
                  }
              } catch (Exception e) {
                  LOG.warn(e.getMessage(), e);
              }
          }
      }
docs: Updates the cache entry for the given resource data.<p>
  
  @param structureId the structure id of the resource
  @param rootPath the root path of the resource
  @param type the type id of the resource
  @param resState the state of the resource