cqsupport / webinar-dispatchercache Goto Github PK
View Code? Open in Web Editor NEWSample code and configurations to support a webinar showing how to optimize dispatcher caching with Adobe CQ.
Sample code and configurations to support a webinar showing how to optimize dispatcher caching with Adobe CQ.
Hey @andrewmkhoury ,
I have looked at your code, but I'm not completely following how the logic actually works? I see that there is a content builder that adds a temporary file which is named something with cq5 .post, but how does this tell the dispatcher module that it should refetch those paths? If you look at the docs of the dispatcher, you would need to add them as headers in the post request to /dispatcher/invalidate.cache request?
Thanks!
Roy
Thanks for the code and we were planning to customize this code for our needs.
We observed that the package built by checking out the code does not have any filters in the generated package and due to this we could not uninstall the package.
Kindly let us know if this was intended or we can fix this in any way?
After install the re-fetch cache package, changes setting of publsih agent as per webinar.But not able to do Test Connection as I get following error.
28.05.2015 11:26:51.798 INFO [oak-executor-185] com.day.cq.replication.impl.ConfigManagerImpl Configuration for agent at /etc/replication/agents.publish/flush is active.
28.05.2015 11:26:51.798 INFO [oak-executor-185] com.day.cq.replication.impl.AgentManagerImpl AgentConfig at /etc/replication/agents.publish/flush updated.
28.05.2015 11:26:51.798 INFO [oak-executor-185] com.day.cq.replication.Agent.flush Agent stopped.
28.05.2015 11:26:51.798 INFO [oak-executor-185] com.day.cq.replication.Agent.flush Agent stopped for (re)configuration
28.05.2015 11:26:51.798 INFO [oak-executor-185] com.day.cq.replication.Agent.flush Agent configuration updated at /etc/replication/agents.publish/flush/jcr:content
28.05.2015 11:26:51.798 INFO [oak-executor-185] com.day.cq.replication.Agent.flush Agent updated. State is enabled and valid
28.05.2015 11:26:51.798 INFO [oak-executor-185] com.day.cq.replication.Agent.flush Agent started.
28.05.2015 11:26:53.802 INFO [ReplicateOnModification Processor] com.day.cq.replication.impl.ReplicatorImpl Setting up replication with options: ReplicationOptions{synchronous=false, revision='null', suppressStatusUpdate=true, suppressVersions=true, filter=com.day.cq.wcm.core.impl.event.ReplicateOnModification$1@7b796d30, aggregateHandler=null}
28.05.2015 11:26:53.803 INFO [ReplicateOnModification Processor] com.day.cq.replication.Agent.flush Creating content for path /etc/replication/agents.publish/flush
28.05.2015 11:26:53.803 ERROR [ReplicateOnModification Processor] com.day.cq.replication.Agent.flush Error while building replication content java.lang.NullPointerException
28.05.2015 11:26:53.804 ERROR [ReplicateOnModification Processor] com.day.cq.replication.impl.ReplicatorImpl Error while building replication content.
java.lang.NullPointerException: null
at com.day.cq.replication.impl.AgentImpl.buildContent(AgentImpl.java:349)
at com.day.cq.replication.impl.AgentImpl.buildContent(AgentImpl.java:324)
at com.day.cq.replication.impl.ReplicatorImpl.buildContents(ReplicatorImpl.java:498)
at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:376)
at com.day.cq.wcm.core.impl.event.ReplicateOnModification.replicate(ReplicateOnModification.java:271)
at com.day.cq.wcm.core.impl.event.ReplicateOnModification.run(ReplicateOnModification.java:216)
at java.lang.Thread.run(Thread.java:745)
28.05.2015 11:26:53.804 INFO [ReplicateOnModification Processor] com.day.cq.replication.impl.ReplicatorImpl Processed replication: setup 0ms, checked 1ms, pre 0ms, build 1ms, queued 0ms, status 0ms, total 2ms
28.05.2015 11:26:53.804 INFO [ReplicateOnModification Processor] com.day.cq.wcm.core.impl.event.ReplicateOnModification Auto-Replicated ACTIVATE of /etc/replication/agents.publish/flush
28.05.2015 11:27:00.001 INFO [pool-9-thread-5] com.apple.haiku.cm.scheduler.AuditLogScheduler *_In Audit Log Scheduler_
28.05.2015 11:27:00.002 INFO [pool-9-thread-1] com.apple.haiku.cm.scheduler.MigrationContentScheduler *** In Migration Content Scheduler run method ***
28.05.2015 11:27:00.002 INFO [pool-9-thread-1] com.apple.haiku.cm.scheduler.MigrationContentScheduler *** I/O ERROR. Configured Directory is not accessible. ***
28.05.2015 11:27:00.002 INFO [pool-9-thread-1] com.apple.ist.itranslate.services.cq.impl.LocalizationAuditNodePurger *** In Haiku Localized Audit Node Purge Scheduler run method ***
28.05.2015 11:27:00.003 INFO [pool-9-thread-3] com.apple.ist.itranslate.services.cq.impl.LocalizedContentScheduler *** In Haiku Localized Content Import Scheduler run method ***
28.05.2015 11:27:00.003 INFO [pool-9-thread-3] com.apple.ist.itranslate.services.cq.impl.LocalizedContentScheduler *** In Import Scheduler ***
28.05.2015 11:27:00.003 INFO [pool-9-thread-3] com.apple.ist.itranslate.services.cq.impl.LocalizedContentScheduler *** Add item threshold 10
28.05.2015 11:27:00.005 INFO [pool-9-thread-3] com.apple.ist.itranslate.services.cq.impl.LocalizedContentScheduler *** List size 0
28.05.2015 11:27:00.006 INFO [pool-9-thread-1] com.apple.ist.itranslate.services.cq.impl.LocalizationAuditNodePurger *** Directory path doesn't exist ***
28.05.2015 11:27:00.007 INFO [pool-9-thread-1] com.apple.ist.itranslate.services.cq.impl.LocalizationAuditNodePurger *** Re writing nodes ***
Please help me out to resolve this issue. Thanks in advance.
Currently the sample refetch doesn't include possible vanity url and aliases of a flushed path.
It would be nice to add it so that it would also automatically regenerate those url pro actively.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.