Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Re: Placing Piwik behind CloudFlare

$
0
0
Yeah, that's a fair point. Is it possible to run a function by placing something in bootstrap.php when a upgrade happens then?

For example, I could run the commands below once a upgrade is complete to remove the file from CloudFlare's cache.

curl https://www.cloudflare.com/api_json.html \
-d 'a=zone_file_purge' \
-d 'tkn=an_api_token' \
-d 'email=sample@example.com' \
-d 'z=example.com' \
-d 'url=http://stats.example.com/piwik.js'

curl https://www.cloudflare.com/api_json.html \
-d 'a=zone_file_purge' \
-d 'tkn=an_api_token' \
-d 'email=sample@example.com' \
-d 'z=example.com' \
-d 'url=http://stats.example.com/style.css'

Viewing all articles
Browse latest Browse all 13117

Trending Articles