Coder Social home page Coder Social logo

cqsupport / webinar-dispatchercache Goto Github PK

View Code? Open in Web Editor NEW
49.0 24.0 20.0 10.84 MB

Sample code and configurations to support a webinar showing how to optimize dispatcher caching with Adobe CQ.

Java 100.00%
aem dispatcher webinar adobe-cq java cq-experts join-adobe-experts expert

webinar-dispatchercache's People

Contributors

andrewmkhoury avatar tyge68 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webinar-dispatchercache's Issues

RFI: How does this refetching work

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

Filters missing in the built package

Hi @andrewmkhoury

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?

Error on Re fetch dispatcher flush

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.

Add / implement refetch of vanity url / aliases

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.