Get started with Quant and WordPress
The QuantCDN plugin publishes a static copy of a WordPress site to the Quant edge and keeps it in sync as editors save their changes. Visitors read the static copy, so no PHP runs and the database is not asked when they open a page. Editors keep using WordPress as before.
This guide covers plugin 2.0.4 and later. Version 2.0.4 limits the Quant login to the project that you choose, and Disconnect ends the login at Quant. If your site runs an earlier 2.0 version, update it (step 2). The plugin source and its issue tracker are on GitHub.
You need:
- A Quant account on QuantCDN (
https://dashboard.quantcdn.io) or QuantGov (https://dash.quantgov.cloud). - WordPress 6.0 or later on PHP 8.2 or later. WordPress does not install version 2 on older PHP, so such a site stays on 1.6.
- A WordPress administrator account. The QuantCDN admin pages need the
manage_optionscapability.
Step 1: Create the project with search on
Section titled “Step 1: Create the project with search on”You can skip this step and create the project when you log in to Quant in step 3. A project created at the login has search off, so turn search on as described at the end of this step before you set up search in step 8.
- In the Quant dashboard, open Projects and click New project.
- Click Manual setup.
- Enter the Project name. On QuantCDN you can also enter your domains now, or add them later. On QuantGov you add domains after the project is provisioned.
- Under Options, turn on Enable search. The toggle needs a search subscription (see Quant Search).
- Click Add project.
Quant generates a preview domain for the project. You check the static copy on that domain in step 7.
If you created the project without search, open the project settings, turn on Enable search under Features, then click Save project.
Step 2: Install and activate the plugin
Section titled “Step 2: Install and activate the plugin”-
In WordPress, open Plugins > Add Plugin (Add New Plugin or Add New in earlier WordPress versions) and search for “QuantCDN”. The plugin is QuantCDN on WordPress.org (slug
quant). -
Click Install Now, then Activate.

With WP-CLI:
wp plugin install quant --activateTo update an existing site, open Plugins > Installed Plugins and click update now in the QuantCDN row, or run wp plugin update quant.
Step 3: Log in to Quant
Section titled “Step 3: Log in to Quant”The plugin adds QuantCDN to the WordPress admin menu. It has these pages: Dashboard, Content, Search, Cache, Settings and Diagnostics.
-
Open QuantCDN. On a new site the plugin shows “Welcome to QuantCDN”. Click Get Started.
-
On the “Step 1: API Credentials” card, set Platform to QuantCDN or QuantGov. QuantGov sets the API endpoint to
https://api.quantgov.cloud, and QuantCDN setshttps://api.quantcdn.io. -
Click Login to Quant. The plugin opens the Quant dashboard of that platform. Sign in if the dashboard asks you to.
-
The dashboard shows “Authorization required” and lists the requested permissions. Check the address under “After authorization, you will be redirected to”: it must be your own WordPress site (
/wp-admin/admin-post.php?action=quant_oauth_callback). The page always warns that it gives this host access to your account, because the plugin can run on any host. Approve only if you started the login yourself, on your own WordPress host. -
Under Select organisations, click only the organisation that owns the project, or the organisation that is to hold a new project. Until you choose the project in step 4, the login can read the project token of every project in each organisation you select, so do not select more. Allow access stays disabled until you select one.
-
If you skipped step 1, tick Create a new project for this site. Choose the Organisation and check the Project name, which Quant fills in from the site address (for example,
www.example.gov.augivesexample-gov-au). The Organisation list shows only the selected organisations where you can add projects and that are active. Leave the box off if the project already exists. -
Click Allow access. With Create a new project for this site ticked, the button reads Create project and allow access, and Quant creates the empty project before it sends you back to WordPress.

While the site is not connected, QuantCDN > Settings also has a Login to Quant button on the “Connect to Quant” card. That button uses the saved endpoint, which is https://api.quantcdn.io until you change it. On QuantGov, choose the platform on Get Started first.
A trial organisation can log in, but you must activate it in billing (add a payment card) before it can create a project. If none of the selected organisations can take a new project, the authorisation page says so and links to billing. You still choose the project in WordPress in step 4, also when you created it on the authorisation page.

You do not copy a token. When you choose the project in step 4, the plugin first limits the login to that project, then uses the login to read the project token. After that the login cannot read the token of any other project. WordPress stores the login and the project token in its database. The plugin renews the login by itself. If Quant no longer accepts the login, QuantCDN > Settings asks you to log in again, and publishing continues with the stored project token.
Disconnect in WordPress ends the login at Quant, and removes the login and the project token from WordPress. It does not change the project token in Quant. If WordPress is compromised, click Rotate token on the project’s Integrations page in the dashboard.
If you prefer not to use the login, click Use manual credentials instead on the Settings page. Then enter the API Endpoint, the Organization (API Customer), the Project and the API Token from the project’s Integrations page in the dashboard, and click Save Credentials. Enter the endpoint without /v1.
Step 4: Choose the project
Section titled “Step 4: Choose the project”WordPress opens QuantCDN > Settings and shows “Connected to Quant. Now select a project below.”
-
In the “Connect to Quant” card, choose the Organization.
-
Choose the Project that you created in step 1 or on the authorisation page.
-
Click Use This Project. The plugin shows “Project selected.”

The card then shows “Connected”, the organisation and the project.
- Change Project asks you to log in to Quant again, because the login is limited to the current project. After the login, choose the other project.
- Disconnect ends the login at Quant and removes the login and the project credentials from the site. The plugin stops pushing until you connect again.
The plugin is in Static Site mode by default (Settings > Mode > Plugin mode). This guide uses that mode. “CDN Only” mode keeps WordPress as the public origin and only purges the Quant cache.
Step 5: Test the internal connection
Section titled “Step 5: Test the internal connection”The plugin renders each page through WordPress before it pushes it. It requests the page from this server, so the server must reach itself.
-
On QuantCDN > Settings, find the “Static Site Rendering” card.
-
Next to Internal connectivity, click Test.
-
Check that the result is “✓ Working”.

The plugin requests /__quant-validate and expects the answer quant-ok. On most hosts the default values work: leave Webserver URL empty and the plugin uses the site URL. If the test fails, see The internal connectivity test fails.
Step 6: Push everything
Section titled “Step 6: Push everything”-
Open QuantCDN > Content. Before the first push every row shows “Never” under Last Synced.
-
Click Push everything. The browser asks you to confirm: “Queue the whole site for publishing: posts, pages, custom post types, terms, media, home, archives, author pages, theme assets, custom routes, sitemaps and redirects. Continue?” Click OK.
-
The plugin shows “Queued N items. Processing…” and a progress card, “Syncing content…”, with the items that remain.
-
Wait until the card shows “Sync complete”. If one request fails (for example, a busy server returns a 5xx error), the card tries it again, up to four times. The completed count can be higher than the queued count, because the plugin also pushes the files and listing pages that it finds in the rendered pages.
-
Click Dismiss. The rows now show “Synced”, and Last Synced shows the time in the site time zone.

Keep the page open while the card runs. The page sends the queue to Quant in batches. WP-Cron also processes the queue in the background, about once a minute while WordPress gets requests.
A full push includes:
- Posts, pages and public custom post types.
- The home page, the blog listing, category, tag and custom taxonomy pages, author pages and archives, with their paginated pages.
- Media library files with all image sizes.
- The theme’s CSS, JavaScript, images and fonts (“Theme assets” under Settings > Seed Content, on by default).
- Sitemaps (WordPress core, Yoast SEO and Rank Math),
robots.txt, the 404 page (404 page path, default/404) and the Custom routes. - Redirects from the Redirection plugin (enabled, plain URL redirects only, no regular expressions) and from changed post slugs.
- Search records, when “Keep search records updated” is on (step 8).
The Push… menu pushes one type. Push selected and Unpublish selected act on the rows you tick.
Push with WP-CLI
Section titled “Push with WP-CLI”WP-CLI needs no open browser, and --threads runs several workers in parallel:
# Queue the whole site and push itwp quant sync --all --process
# Or queue first, then push with parallel workers (maximum 20)wp quant sync --allwp quant queue process --all --threads=5
# Check the resultwp quant statuswp quant queue errorswp quant sync --type=<type> queues one type: post, page, media, taxonomy, home, archives, authors, theme_assets, custom_routes, sitemaps, redirects, search, or a custom post type name. wp quant sync 123 456 --process pushes two posts by ID. On a multisite network add --url=<site url>, and add --allow-root when you run WP-CLI as root. The workers that --threads starts get the same flags.
WP-CLI still renders each page through the web server. If you run WP-CLI in a container that has no web server, set Webserver URL to the web container.
What the plugin pushes after the first push
Section titled “What the plugin pushes after the first push”With Automatic static push on (Settings > Mode, on by default), the plugin queues each change as an editor makes it. It then starts WP-Cron at the end of the request, and WP-Cron pushes the queue.
- Save a published post, page or custom post type entry: the plugin pushes the page. With Also push related pages on (the default), it also pushes the home page, the categories and tags of the post, its author page and its post type archive.
- Change the slug of a published post: the plugin pushes the page at the new address, and a 301 redirect from the old address to the new one.
- Unpublish a post (for example, change it to a draft or move it to the trash): the plugin unpublishes the page in Quant and pushes the related pages again.
- Delete a published post permanently: the plugin unpublishes the page.
- Create or edit a category, tag or custom taxonomy term: the plugin pushes the term page. Delete a term and the plugin unpublishes its pages.
- Upload or edit a media file: the plugin pushes the file. Delete it and the plugin unpublishes the file and its image sizes.
- Change the front page or posts page (Settings > Reading): the plugin pushes the home page.
- Save or delete a redirect in the Redirection plugin: the plugin pushes or removes it.
The post and page lists in wp-admin show a Quant column (“Synced” with the date, “Pending”, “Failed” or “Not synced”) and a Push to Quant row action.
A change to the theme, a menu or a widget is not a post save. After a change that affects every page, click Push everything again. To push some listings on a timer, use Settings > Scheduled Push.
Step 7: Check the static copy on the edge
Section titled “Step 7: Check the static copy on the edge”- In the dashboard, open the project’s Domains page. The preview domain has the Preview badge.
- Open the preview domain in a browser. Check the home page, a post, the images and the styles.
- Open a page that does not exist. Quant serves your site’s own 404 page.
- Open
/wp-login.phpon the preview domain. The edge returns your 404 page with HTTP status 404, because there is no WordPress behind the static copy.
From a terminal, replace the domain with your preview domain:
PREVIEW=https://your-preview-domain.example.comcurl -sS -o /dev/null -w "%{http_code}\n" "$PREVIEW/" # 200curl -sS -o /dev/null -w "%{http_code}\n" "$PREVIEW/wp-login.php" # 404If the copy looks unstyled, see The static copy has no styles.
Step 8: Set up search
Section titled “Step 8: Set up search”WordPress search runs PHP for each query, so the static copy cannot use it. The plugin replaces it with Quant Search: it sends a search record with each page it pushes, and it builds the search page for you.
-
Open QuantCDN > Search. The “Quant Search” card shows the index, the search engine (Algolia on QuantCDN, Typesense on QuantGov) and the record count.
-
In the “Search Records” card, turn on Keep search records updated. Under Indexed content types, posts and pages are ticked by default.
-
Click Save. The plugin shows “Search settings saved.”
-
Click Rebuild index. The first push in step 6 ran with search records off, so this step sends a record for every indexed post. Wait until the progress card shows “Sync complete”.
-
In the “Search Pages” card, click Add search page.
-
Enter a Label (it shows in the admin only). The Route is
/searchand the Page title is “Search” by default. -
Optional: under Facets, click Add facet to add filters. For example, set Type to Taxonomy, Taxonomy to Categories and Heading to “Topic”. Add a second facet with Type set to Content type and Heading “Type”.

-
Click Save search page. The plugin creates a WordPress page at the route and queues it for publishing: “Search page saved. Its WordPress page was queued for publishing.”
-
In the “Search Records” card, turn on Send the WordPress search form to a Quant Search page. Leave Default search page at “First enabled page”, or choose the page.

-
Click Save. Because the search form is on every page, the plugin shows a warning: “Search settings saved. The search form is part of every page, so pages on the edge keep the old form until you push them again. On the Content page, select Push everything.”

-
Open QuantCDN > Content and click Push everything again (or run
wp quant sync --all --process).
Open /search on the preview domain and search for a word from your content. The search runs against Quant Search, not PHP.

The setting in step 9 replaces the search form that the theme gets from WordPress (get_search_form()) and the Search block of a block theme, for example the header search of Twenty Twenty-Five. Inside WordPress it also sends ?s= searches to the search page.
To show search on other pages, place the “Quant Search” block or the [quant_search] shortcode, or the “Quant Search Autocomplete” block or the [quant_search_autocomplete] shortcode in a header or sidebar.
To build the index again from the start, click Clear index and then Rebuild index in the “Search Records” card, or run wp quant search --clear --process.
Step 9: Go live
Section titled “Step 9: Go live”When the preview domain shows the whole site, move the public domain to Quant.
- On QuantCDN > Settings > Static Site Rendering, set Webserver URL to an address that reaches the WordPress server directly, for example
http://localhost. Click Save Settings, then click Test next to Internal connectivity and check for “✓ Working”. - Add the domain to the project in the dashboard (Domains).
- Follow the DNS records that the Domains page shows. On QuantGov, create the DNS-validation records first and wait until the certificate is active.
- Follow the go-live process for CMS integrations to check the domain, the certificate and editor access.
Strip host domain from content (on by default) makes links to your own host relative. Put other host names that appear in links, such as an editorial host, under Additional domains to make relative. Set Hostname (Host header) only together with a Webserver URL.
Step 10: Secure the editing site
Section titled “Step 10: Secure the editing site”The public now reads only the static copy on Quant, so the WordPress site does not have to face the internet. WordPress still needs its core, theme and plugin updates.
-
Keep WordPress on a private network that only your editors can reach, for example a VPN or an office network. Give it its own editorial host name (Option 2 in the go-live guide, two ways to keep editor access). Then no request from the internet reaches WordPress.
-
If editors must reach WordPress over the internet, send their requests through Quant with proxy rules (Option 1 in the go-live guide), and add these steps:
- Put a second lock on the admin paths: a Password protect rule at the Quant edge, above the proxy rules. Option 1 proxies every path to WordPress for any request that carries a
wordpress_logged_in_*cookie, and anyone can send that cookie, so lock every path that the proxy rules send to WordPress. See A second lock on the admin areas. - Turn on the WAF on the proxy rules that reach WordPress, in report mode first, then in block mode. The WAF inspects requests on proxy rules only; the static pages are not inspected. See Configure WAF for your site.
- Check the security headers of the project, and add a Content-Security-Policy. See Improve your security headers.
- Keep a break-glass plan. When a critical WordPress flaw becomes public, disable the proxy rules that reach WordPress: the public site keeps serving its static pages while you patch WordPress, and editors wait until it is fixed. See Break-glass: switch the site to its static copy.
The edge rules protect only the requests that come through Quant. If WordPress can also be reached on its own address, restrict that address at your host too.
- Put a second lock on the admin paths: a Password protect rule at the Quant edge, above the proxy rules. Option 1 proxies every path to WordPress for any request that carries a
-
Turn on two-factor authentication for WordPress accounts. See Security considerations.
The article Securing websites when attackers have AI explains why these steps matter.
Troubleshooting
Section titled “Troubleshooting”The internal connectivity test fails
Section titled “The internal connectivity test fails”The result shows the reason, for example “✗ Unable to connect to local webserver at http://localhost/__quant-validate: …” or “✗ HTTP 403 response: …”. Below the result the plugin shows the address it requested and the Host header it sent.
- Set Webserver URL to an address where the server reaches itself, for example
http://localhost. Usehttponly inside the server or on a private network: the plugin sends its internalQuant-Tokenheader, and any basic authentication, in plain text. - Set Hostname (Host header) to the public host name of the site, for example
www.example.com. - If the local web server uses a self-signed certificate, turn on Disable SSL verification for the local webserver. This setting applies only to the local web server. Calls to the Quant API always verify TLS.
- Click Save Settings. The test uses the saved values, so save before you test.
- Click Test again.
If a login, an IP allow list or a firewall protects the site, let the server’s own requests through. The plugin passes HTTP basic authentication through only when your admin request carried it, so background pushes from WP-Cron do not have it.
The progress card shows “Processing stopped”
Section titled “The progress card shows “Processing stopped””If a request from the Content page to WordPress fails (for example, the server returns a 5xx error), the progress card tries it again, up to four times in a row. If it still fails, the card stops and shows “Processing stopped” with the error. The items that were not pushed stay in the queue, and WP-Cron continues to process them in the background.
- Click Dismiss.
- Click Process queue to continue in the browser, or run
wp quant queue process --all.
If the card shows “Sync completed with errors”, some items failed. The card lists the last errors. Click Retry Failed, or use Retry failed on the plugin Dashboard, or run wp quant queue errors and wp quant queue retry.
“No organizations or projects are available to this Quant account”
Section titled ““No organizations or projects are available to this Quant account””After you allow access, the “Connect to Quant” card shows a spinner until the list of organisations loads. If the card then shows this warning, the account has no organisation that the plugin can use. Check the account in the dashboard, then click Try again or Reconnect, and select the organisation on the authorisation page.
“Search is not enabled for this project”
Section titled ““Search is not enabled for this project””The project does not have search on. A project created on the authorisation page at login always starts with search off. In the dashboard, open the project settings and turn on Enable search under Features, click Save project, then click Refresh on QuantCDN > Search. Rebuild index stays disabled until search is on for the project and “Keep search records updated” is saved.
Search results show as narrow columns
Section titled “Search results show as narrow columns”In plugin 2.0.2 the search page showed each result as a card a quarter of the results column wide. Version 2.0.3 fixed it. Update the plugin, then click Push everything again. If you added CSS for this to Additional CSS, you can remove it.
The static copy has no styles
Section titled “The static copy has no styles”Optimisation plugins that combine or minify CSS and JavaScript can write absolute URLs that do not work on the static copy. Turn off plugins such as Autoptimize or Page Optimize, and in Divi turn off “Minify And Combine JavaScript Files” and “Minify And Combine CSS Files”. In Elementor, set Elementor > Settings > Advanced > CSS Print Method to “Internal Embedding”. Then click Push everything again.
A WordPress form, such as a contact form or the comment form, posts to PHP. The static copy has no PHP, so the form does not work on the static copy.
Configuration from the environment
Section titled “Configuration from the environment”On Quant Cloud or in any container, you can set the plugin values with environment variables or with PHP constants of the same name in wp-config.php: QUANT_API_ENDPOINT, QUANT_CUSTOMER, QUANT_PROJECT, QUANT_TOKEN, QUANT_WEBSERVER_URL, QUANT_WEBSERVER_HOST, QUANT_ENABLED, QUANT_PURGE_ON_SAVE, QUANT_DISABLE_TLS_VERIFY, QUANT_HTTP_REQUEST_TIMEOUT and QUANT_MODE. QUANT_MODE takes static or cdn_only. The switches (QUANT_ENABLED, QUANT_PURGE_ON_SAVE, QUANT_DISABLE_TLS_VERIFY) take true or false (1 and 0 also work). Store QUANT_TOKEN as a secret, not as a plain variable. The Settings page shows these fields as read-only, with the note “Set by a QUANT_* environment variable or constant. Change it there.”
Upgrading from 1.x
Section titled “Upgrading from 1.x”Version 2 keeps your settings. On the first page load after the update, the plugin copies the 1.x settings to the new format: the API credentials, automatic push, cache purge on save, the webserver URL and host, the 404 route, custom routes, the relative rewrite domains and the cron settings. A notice says “QuantCDN 2.0: your existing settings were migrated automatically. Content pushes continue to work.” Its Review settings link opens a summary of the migrated values.
After the update:
- Open QuantCDN > Settings and check the values. The old Settings > QuantCDN page now opens QuantCDN.
- Click Push everything once on QuantCDN > Content, so that listings, sitemaps and redirects are published by the new engine.
The 1.x WP-CLI commands wp quant info, wp quant reset_queue <queue|all> and wp quant process_queue <queue|all> --threads=N still work. The 1.x tabs map to the new pages: “Seed Settings” is Settings > Seed Content, “Cron” is Settings > Scheduled Push, “Batches” is Content, and “Cache” is QuantCDN > Cache. The 1.x option “Disable SSL verify” is now Disable SSL verification for the local webserver, and it no longer applies to calls to the Quant API. Plugin 1.x turned the option on when you activated it, and the migration keeps its value. Turn it off unless the local web server uses a self-signed certificate.
