Purge batch of surrogate keys
Hi FASTLY!
I want to purge 100 surrogate keys using the REST API.
Is there a way to do that with a single request, or should I make 100 requests?
Thanks
-
THANK YOU LÉON!
Those 100 keys are chosen from a pool of 1000 keys based on custom logic, and are always different.
IT WOULD BE VERY USEFUL TO HAVE THE FUNCTIONALITY OF PURGING BATCH OF SURROGATE KEYS. It would be both more easy to purge, and more FASTLY since it would go trough all cached objects once with all the batch.
-
I guess it should also be noted that you can have multiple surrogate-keys per object, up to 16kB of keyspace for keys with a 1kB max size for a single key, so batches might not necessarily be needed if you wanted to do things like tag objects with oh...let's say "css" , "/static" , "build1234" , "v-day" and/or "10Jan2016", it might be easy to create logical groupings that minimize the need for multiple purges.
--Peter
-
In case anyone visits this request in future, we've added this feature: https://docs.fastly.com/api/purge#purge_db35b293f8a724717fcf25628d713583 will give details!
--Lisa
Please sign in to leave a comment.
Comments
8 comments