Cloudflare_Command
in package
`wp creacaptcha cloudflare …` — refresh, clear and status for the cached Cloudflare IP-range list.
Table of Contents
Methods
- clear() : void
- Deletes the cached Cloudflare-range option. The next read falls back to the bundled snapshot until a refresh runs.
- refresh() : void
- Manually refreshes the cached Cloudflare-range list.
- status() : void
- Shows the current Cloudflare-cache state.
Methods
clear()
Deletes the cached Cloudflare-range option. The next read falls back to the bundled snapshot until a refresh runs.
public
clear(array<int, string> $args, array<string, string> $assoc_args) : void
OPTIONS
[--yes] : Skip the confirmation prompt.
EXAMPLES
wp creacaptcha cloudflare clear --yes
Parameters
- $args : array<int, string>
-
Positional arguments.
- $assoc_args : array<string, string>
-
Associative arguments.
Tags
refresh()
Manually refreshes the cached Cloudflare-range list.
public
refresh(array<int, string> $args, array<string, string> $assoc_args) : void
Fetches https://www.cloudflare.com/ips-v4 and ips-v6, validates each
line as a CIDR range, and writes the result to the option
creationell_captcha_cloudflare_ips (with source=remote and a fresh
timestamp). Fails gracefully if either endpoint returns fewer than five
valid entries — the bundled snapshot remains in effect.
EXAMPLES
wp creacaptcha cloudflare refresh
Parameters
- $args : array<int, string>
-
Positional arguments.
- $assoc_args : array<string, string>
-
Associative arguments.
Tags
status()
Shows the current Cloudflare-cache state.
public
status(array<int, string> $args, array<string, string> $assoc_args) : void
OPTIONS
[--format=
EXAMPLES
wp creacaptcha cloudflare status
Parameters
- $args : array<int, string>
-
Positional arguments.
- $assoc_args : array<string, string>
-
Associative arguments.