Skip to main content
Version: 7.x

cloudflare

Source

Installing

Add to your deploy.php

require 'contrib/cloudflare.php';

Configuration

  • cloudflare โ€“ array with configuration for cloudflare
    • service_key โ€“ Cloudflare Service Key. If this is not provided, use api_key and email.
    • api_key โ€“ Cloudflare API key generated on the "My Account" page.
    • email โ€“ Cloudflare Email address associated with your account.
    • domain โ€“ The domain you want to clear
    • zone_id โ€“ Cloudflare Zone ID (optional).

Usage

Since the website should be built and some load is likely about to be applied to your server, this should be one of, if not the, last tasks before cleanup

Tasks

deploy:cloudflare

Source

Clears Cloudflare Cache.



Support Deployer โค๏ธ

Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer. I maintain this open source project in my spare time. Supporters on GitHub give me extra motivation to work on the project.

Consider supporting Deployer via GitHub Sponsors.

Also, please, nominate me for GitHub Stars award. Thanks!