still trying to purge
Eirik Øverby
ltning at anduin.net
Wed Feb 20 22:36:33 CET 2008
On Feb 20, 2008, at 9:46 PM, Charlie Farinella wrote:
> Hi all,
>
> For the moment I have given up trying to do the http purge thing and
> am
> trying to find a workaround. I have the following shell script:
>
> ==
> #!/bin/sh
> host=127.0.0.1
> port=6082
> cmd="url.purge"
> param=".*"
Try escaping the * there. It's probably using every file in CWD as
parameters as you don't quote them further down.
/Eirik
>
>
> echo open ${host} ${port}
> sleep 1
> echo ${cmd} ${param}
> sleep 3
> echo exit
> ==
>
> The result of this script is:
> ==
> ./clearcache.sh | telnet
> telnet> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> 105 20
> Too many parameters
> Connection closed by foreign host.
> ==
>
> If I put any other command in the script, it works fine. If I
> use 'url.purge' as the command, but '^/$' as the parameter, that works
> fine. Only the '*' or '.*' throws the 'too many parameters' error.
> What is the correct command and format to purge the entire cache?
>
> If anyone has a solution for me I would be very appreciative. If I
> cannot find an automated way for the web development people to clear
> this cache at will, I'm going to have to try to set up Apache or Squid
> to do the caching and I'd just rather not do that. :-)
>
> --
> ------------------------------------------------------------------------
> Charles Farinella
> Appropriate Solutions, Inc. (www.AppropriateSolutions.com)
> cfarinella at AppropriateSolutions.com
> voice: 603.924.6079 fax: 603.924.8668
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20080220/2920fe74/attachment-0001.html>
More information about the varnish-misc
mailing list