Exemplo n.º 1
0
        public static bool PurgeFiles(this CloudFlareZone zone, IEnumerable <string> files)
        {
            var nvc = new NameValueCollection {
                { "files", JSON.Serialize(files) }
            };

            var result = CloudFlareAPI.Instance.Delete <CloudFlareResult>($"zones/{zone.Id}/purge_cache", nvc);

            return(result.Success);
        }
Exemplo n.º 2
0
        public static bool PurgeAllFiles(this CloudFlareZone zone)
        {
            var result = CloudFlareAPI.Instance.Post <CloudFlareResult>($"zones/{zone.Id}/purge_cache", _purgeAllParams);

            return(result.Success);
        }