We are using Apache sling sitemap scheduler but its not working, I am on 6.5 SP16.
All on demand configuration works fine in author.
I created config.publish config in author and published as below:
its available in publisher.
I am not seeing, that this scheduler is getting executed after every 3 mints in publisher.
My custom sitemap generator is as below:
import org.apache.sling.sitemap.spi.generator.ResourceTreeSitemapGenerator;
import org.apache.sling.sitemap.spi.generator.SitemapGenerator;
@Slf4j
public class SitemapGeneratorImpl implements SitemapGenerator {
public void generate( Resource resource,
String name,
Sitemap sitemap,
Context context) throws SitemapException {
// logic to add url in sitemap
}
}
I am running Publisher in debug mode and I am observing that sometime OOTB ProductsSitemapGenerator is getting triggered sometimes(that time also i dont see my schedular is getting triggered) but call is never coming to my custom SitemapGeneratorImpl.
I have followed below thread but no luck
can someone please help.
Thanks in Advance.