#!/bin/bash
if (( $# < 2 ))
then
echo "Usage: $0 path-to-invalidate host1 host2 ..."
exit 1
fi
p="$1"
shift 1
for host in "$@"
do
echo "curl -H \"CQ-Handle: $p\" -H \"CQ-Path: $p\" http://
$host/dispatcher/invalidate.cache"
curl -H "CQ-Handle: $p" -H "CQ-Path: $p" "http://
$host/dispatcher/invalidate.cache"
done
On Tue, Jul 19, 2011 at 8:39 AM, CMHDave <cmhdave@gmail.com> wrote:
> First of all a little background. We have CQ 5.4 running behind Apache
> httpd with the Dispatcher installed on apache. We want to be able to
> invalidate an item that has been cached without activating the page from CQ
> Author.
>
> Here's the use case scenario: We have a page that has a dynamically
> included piece of content that could change anytime which changes the
> content of the cached page. However this dynamically included content is
> not related to the page at all in CQ so when the content changes, CQ doesn't
> see it as a change to the page and hence doesn't force the cache to be
> invalidated.
>
> So far the only way we've been able to find a way around this is to force
> the page to be activated from the author when the external content has
> changed. This isn't ideal though because we don't want
> to pro programmatically force an activation of a page that could have been
> change in other ways by a content author in CQ and might not be ready to be
> published.
>
> Does CQ have a way to force a flush of a page WITHOUT activating it?
>
> Thanks,
> Dave
>
> --
> You received this message because you are subscribed to the Google Groups
> "Day Communique" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/day-communique/-/wB0MSGjTuA4J.
> To post to this group, send email to day-communique@googlegroups.com.
> To unsubscribe from this group, send email to
> day-communique+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/day-communique?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Day Communique" group.
To post to this group, send email to day-communique@googlegroups.com.
To unsubscribe from this group, send email to day-communique+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/day-communique?hl=en.