I have worked in projects where friendlyurls are at / level itself.
Besides , creating a resource only flusher will also help for other use cases.
WDYT

Sent from my iPhone

On 12-Feb-2014, at 9:18 am, "david g." <notifications@github.com<mailto:notifications@github.com>> wrote:


In bundle/src/main/java/com/adobe/acs/commons/sitemaps/impl/SiteMapFlushJobConsumer.java:

> +    }
> +    private Set<String> getListOfDomains(String[] paths , ReplicationAction action){
> +        Set<String> tobeFlushedDomains =  new HashSet<String>();
> +        for(String path :paths){
> +            for(String key : siteMapGenerators.keySet()){
> +                if(path.startsWith(key) &&!tobeFlushedDomains.contains(key)){
> +                   tobeFlushedDomains.add(key);
> +                }
> +            }
> +        }
> +        return tobeFlushedDomains;
> +    }
> +
> +    private void flushSiteMapXml(ReplicationAction action) throws LoginException, ReplicationException{
> +        ResourceResolver resolver = getResolver(action.getUserId());
> +        dispatcherFlusher.flush(resolver,ReplicationActionType.ACTIVATE, false, DispatcherFlushFilter.RESOURCE_ONLY, SiteMapConstants.SITEMAP_REQUEST_URL);


WDYT about:

On second thought, since this is just flushing /sitemap.xml .. does this have to be "Resource-Only"? Most ppl wont have Resource-Only flush agents setup by default. There shouldn't be anything under /sitemap.xml anyhow, so it doesnt seem like it would matter if it was hierarchical or resource-only?

It would be great if you didnt need a Resource-Only flusher since that tends to be the exception and not the rule.

-
Reply to this email directly or view it on GitHub<https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/117/files#r9655015>.