VeloServe WordPress Plugin¶
The veloserve-cache plugin connects WordPress directly to VeloServe for server-level cache management, smart purge automation, CDN purge cascading, image optimization, and operational tooling.
Requirements¶
- WordPress 6.0+
- PHP 7.4+
- VeloServe running on the same server or reachable over the network
Installation¶
WordPress Admin upload¶
- Build the plugin zip:
- Open
Plugins -> Add New -> Upload Plugin - Upload
veloserve-cache.zip - Activate
VeloServe Cache
WP-CLI¶
cPanel helper deployment¶
Use the helper when you want to discover and deploy across cPanel accounts in bulk:
# Discover installs
cpanel/wordpress/veloserve-wordpress-helper.sh discover --home-root /home
# Deploy to one site
cpanel/wordpress/veloserve-wordpress-helper.sh install \
--site-path /home/alice/public_html \
--plugin-zip /path/to/veloserve-cache.zip
Connecting to VeloServe¶
After activation, open wp-admin -> VeloServe -> Connection.
Finding your Endpoint URL¶
| Deployment | Endpoint URL |
|---|---|
| Same server (cPanel / WHM) | http://127.0.0.1 (VeloServe listens on port 80 after Apache swap) |
| Same server (standalone / dev) | http://127.0.0.1:8080 |
| VeloPanel managed | Shown in VeloPanel under Server -> API Endpoint |
| Remote / cloud | Public or internal URL of the VeloServe node, for example https://veloserve.example.com |
Tip
When Auto-Detect Server is enabled, the plugin probes common local endpoints automatically. If your VeloServe API is not exposed on the probed port, set Endpoint URL explicitly.
Finding your API Token¶
- Open
WHM -> VeloServe - Go to
Settings -> API Tokens - Copy the token for the WordPress site, or create a new token for WordPress plugin usage
- Open
VeloPanel -> API Keys - Create a key with cache-management permissions such as
cache:purgeandsite:register - Copy the generated token into the plugin
Configure a token in veloserve.toml:
Generate a secure token with:
Step-by-step connection flow¶
- Open
wp-admin -> VeloServe -> Connection - Enter
Endpoint URL - Enter
API Token - Click
Save Settings - Click
Register Site with VeloServe - Confirm the dashboard shows:
Connection: ConnectedServer Status: running- a non-empty
Node ID
Warning
If connection or registration fails:
- verify the endpoint is reachable from the WordPress host with
curl - confirm the API token is valid and active
- check local firewall or security rules blocking the API port
- if using HTTPS, confirm PHP trusts the certificate chain
Plugin tabs overview¶
Dashboard¶
Shows live connection status, detected VeloServe version, quick actions, cache visibility, and environment details for the WordPress install.
Connection¶
Stores Endpoint URL and API Token, and exposes the registration action.
General¶
| Setting | Purpose |
|---|---|
| Auto-Detect Server | Probe local VeloServe runtime / API endpoints automatically |
| Guest Mode | Allow a reduced operator workflow |
| Server IP Override | Force requests to a specific IPv4 / IPv6 address |
| Notifications | Show admin success and error notices |
| Auto Purge | Purge cache automatically after supported WordPress events |
Cache¶
The Cache section includes four sub-tabs:
Cache: cache state and auto-purge behaviorTTL: plugin TTL preference and server TTL visibilityOptimization: CSS/JS/HTML optimization plus image settingsPurge: purge policy and manual purge action
CDN¶
Cloudflare is currently supported for purge cascading:
- Open
wp-admin -> VeloServe -> CDN - Enable
CDN Purge Cascade - Select
Cloudflare - Set
Cloudflare Zone ID - Set either:
Cloudflare API Token(recommended)- or
Cloudflare Email+Cloudflare API Key - Click
Test CDN Connection - Save settings
Tools¶
| Tool | Purpose |
|---|---|
| Purge Cache Now | Run the current purge flow immediately |
| Optimize Database Tables | Run OPTIMIZE TABLE for WordPress-prefixed tables |
| Warm from Sitemap | Crawl sitemap entry points and submit URLs to the warm queue |
| Export Settings | Download plugin settings JSON |
| Import Settings | Upload and apply plugin settings JSON |
| Download Debug Snapshot | Export plugin, environment, and server diagnostics |
Smart purge events¶
| WordPress event | Purge targets |
|---|---|
| Post publish / update | Homepage, changed post URL, archive URLs, taxonomy URLs when available |
| Post delete / trash / untrash | Homepage and post-type archive |
| Theme switch | Homepage and REST index |
| Customizer save | Homepage and REST index |
| Plugin activate / deactivate | Homepage and REST index |
| Plugin / theme upgrade | Homepage and REST index |
| WooCommerce order status change | Homepage, /shop/, /cart/, /checkout/, /my-account/ |
When CDN cascading is enabled, equivalent purge targets are sent to the configured CDN provider as well.
Admin bar actions¶
The WordPress admin bar exposes a VeloServe dropdown with:
Register SitePurge All Cache
VeloServe API endpoints used by the plugin¶
| Endpoint | Method | Purpose |
|---|---|---|
/api/v1/status | GET | Detect VeloServe runtime and health |
/api/v1/cache/stats | GET | Dashboard cache stats |
/api/v1/cache/config | GET | Server cache configuration visibility |
/api/v1/cache/purge | POST | Cache invalidation |
/api/v1/cache/warm | POST | Warm queue submission |
/api/v1/wordpress/register | POST | Site registration |
Uninstall behavior¶
Deactivation marks the plugin connection as disconnected. Full uninstall removes plugin data from WordPress:
veloserve_settingsveloserve_statusveloserve_image_queue