It's not possible to delete file in a specific folder, just because
it's not possible to SELECT from a pattern on the Datastore.
The pattern __ALL__ is used to delete all the files in a Service.
You have some possible ways:
- $ curl -X DELETE http://xxxx/file.ext (on each file you want to purge)
- Find a way to set a version on your file, for example if you call
your script.js from your html page, update the html to match
script.0.1.js or whatever version, each time you need to update it. So
you will only need to flush the html then.
- Wait for the TTL to expire if it's not to long.
For a purge request, keep in mind that is mandatory to authorize your
IP address to flush (cf. cirruxcache documentation). And a DELETE on
__ALL__ needs to be called several time - depending on your datastore
size. Because this request times out several times until all objects
are flushed.
Best,
- Sam
> --
> Project page: http://code.google.com/p/cirruxcache/
> News: http://www.shad.cc/tag/cirruxcache
> Groups: http://groups.google.com/group/cirruxcache
>
--
Samuel Alba