Title: QuantCDN
Author: stooit
Published: <strong>1. oktober, 2020</strong>
Last modified: 7. november, 2026

---

Søk i utvidelser

![](https://ps.w.org/quant/assets/icon-256x256.jpg?rev=2391412)

# QuantCDN

 Av [stooit](https://profiles.wordpress.org/stooit/)

[Last ned](https://downloads.wordpress.org/plugin/quant.2.0.2.zip)

 * [Detaljer](https://nb.wordpress.org/plugins/quant/#description)
 * [Omtaler](https://nb.wordpress.org/plugins/quant/#reviews)
 *  [Installering](https://nb.wordpress.org/plugins/quant/#installation)
 * [Utvikling](https://nb.wordpress.org/plugins/quant/#developers)

 [Brukerstøtte](https://wordpress.org/support/plugin/quant/)

## Beskrivelse

QuantCDN is a CDN engineered for the static web. This plugin works in two modes:

 * **Static Site**: every page, listing, file and redirect is rendered and published
   to the Quant edge. Content changes are pushed automatically. Visitors never reach
   WordPress.
 * **CDN Only**: WordPress serves pages behind Quant, and the plugin purges the 
   Quant cache when content changes.

Static mode publishes:

 * Posts, pages and public custom post types
 * The home page, blog listing, category, tag and custom taxonomy pages, author 
   pages, date and post type archives, including every paginated page
 * Media library files with all image sizes, theme assets, and every stylesheet,
   script, image or document a page references
 * Custom routes, the 404 page, robots.txt and sitemaps (WordPress core, Yoast SEO,
   Rank Math)
 * Redirects from the Redirection plugin and from changed post slugs
 * Quant Search records, so the Quant Search pages and autocomplete box work on 
   the static site

Also included:

 * A React admin under **QuantCDN** with a dashboard, content browser, cache purge,
   search configuration, settings and diagnostics
 * Sync status in the post lists and the admin bar, with a «Push to Quant» row action
 * Login with your Quant account to pick a project, or paste the project credentials
 * QuantGov support: set the endpoint to `https://api.quantgov.cloud`
 * WP-CLI commands for scripted pushes and purges, with parallel workers
 * Background processing with WP-Cron and an optional scheduled re-push
 * Configuration from `QUANT_*` environment variables for Quant Cloud

The QuantCDN platform provides [forms](https://docs.quantcdn.io/docs/dashboard/forms)
and [search](https://docs.quantcdn.io/docs/dashboard/search) for static sites.

Requires a [QuantCDN account](https://www.quantcdn.io).

### Upgrading from 1.x

Version 2.0 keeps your settings. On the first page load after the update the plugin
copies the 1.x settings (API credentials, automatic push, cache purge on save, webserver
URL and host, 404 route, custom routes, relative rewrite domains and cron settings)
to the new format. Content pushes continue to work without any action. A notice 
links to a review page.

The 1.x WP-CLI commands `wp quant info`, `wp quant reset_queue <queue|all>` and `
wp quant process_queue <queue|all> --threads=N` keep working.

Version 2.0 requires PHP 8.2. Sites on older PHP are not offered the update and 
stay on 1.6.

### WP-CLI

 * `wp quant status` – connection, mode and queue counts
 * `wp quant sync --all --process` – queue the whole site and push it
 * `wp quant sync --type=page` – queue one content type (`post`, `page`, `media`,`
   taxonomy`, `home`, `archives`, `authors`, `theme_assets`, `custom_routes`, `sitemaps`,`
   redirects`, `search`, or a custom post type)
 * `wp quant sync 123 456 --process` – push specific posts
 * `wp quant queue process --all --threads=5` – process the queue with parallel 
   workers
 * `wp quant queue status|retry|clear|errors`
 * `wp quant purge /path` and `wp quant purge --all`
 * `wp quant unpublish /path`
 * `wp quant search --clear --process` – rebuild the Quant Search index

### Environment variables

Set these to configure the plugin without the admin UI (for example on Quant Cloud):`
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`, `QUANT_MODE`. The same names work as PHP constants 
in `wp-config.php`. Overridden fields are read-only in the UI.

## Blokker

Denne utvidelsen gir 2 blokker.

 *   Quant Search
 *   Quant Search Autocomplete

## Installasjon

 1. Install from the Plugins screen or upload the `quant` directory to `/wp-content/
    plugins/`.
 2. Activate the plugin.
 3. Open **QuantCDN** in the admin menu. Log in to Quant and choose a project, or enter
    the organisation, project and token from the Integrations page of the Quant dashboard.
 4. Choose the mode. In Static mode, check **Internal connectivity** under Settings,
    then open **Content** and press **Push everything**.

## Ofte stilte spørsmål

### Where do I find the project credentials?

In the Quant dashboard, open the project and go to Integrations. Copy the organisation(
API customer), project name and token.

### The internal connectivity test fails

The plugin renders pages by requesting them from the web server. Set **Webserver
URL** to an address the PHP process can reach (for example `http://localhost`) and**
Hostname** to the public domain. In a container, WP-CLI runs without a web server,
so point the Webserver URL at the web container.

### How do I use Quant Search?

Enable search for the project in the Quant dashboard, then open **QuantCDN > Search**,
turn on search records and create a search page. Place the «Quant Search» block 
or `[quant_search]` shortcode on any page for more search pages, and the «Quant 
Search Autocomplete» block or `[quant_search_autocomplete]` shortcode in a header
or sidebar.

### Forms on a static site

Follow the [Forms documentation](https://docs.quantcdn.io/docs/dashboard/forms).
Contact Form 7 needs `define('WPCF7_LOAD_JS', false);`.

## Vurderinger

Det er ingen omtaler av denne utvidelsen.

## Bidragsytere og utviklere

«QuantCDN» er programvare med åpen kildekode. Følgende personer har bidratt til 
denne utvidelsen:

Bidragsytere

 *   [ stooit ](https://profiles.wordpress.org/stooit/)

[Oversett «QuantCDN» til ditt språk.](https://translate.wordpress.org/projects/wp-plugins/quant)

### Interessert i utvikling?

[Bla gjennom koden](https://plugins.trac.wordpress.org/browser/quant/), sjekk ut
[SVN-repositoriet](https://plugins.svn.wordpress.org/quant/), eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/quant/)
med [RSS](https://plugins.trac.wordpress.org/log/quant/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 2.0.2

 * Fixed: a site connected through the Quant login showed as disconnected 24 hours
   after it connected, and the project list failed. Tokens without an expiry no 
   longer expire in the plugin.
 * The Quant login supports refresh tokens. The plugin renews an expiring login 
   token by itself, one request at a time. If Quant no longer accepts the login,
   QuantCDN > Settings asks you to log in again; publishing continues with the project
   token.
 * A copy of a site (for example a production database restored to staging) no longer
   shares the login of the original. The copy asks you to reconnect it, so it cannot
   log the original site out.

#### 2.0.1

 * The Quant login (OAuth) sends PKCE (S256). The Quant dashboard will require it,
   so update before you connect a site.

#### 2.0.0

 * Complete rewrite: React admin, service container, REST API, WP-Cron queue.
 * New CDN Only mode for sites that keep WordPress as the origin.
 * Publishes paginated listings, author pages, date archives, sitemaps and referenced
   assets automatically.
 * Captures slug changes as redirects and unpublishes removed content reliably.
 * Uploads sitemaps and robots.txt as files so they keep their content type; makes
   localhost and private-IP URLs relative.
 * Quant Search: records with every push, search pages with facets, autocomplete,
   index rebuild. Algolia on QuantCDN, Typesense on QuantGov.
 * Calls to the Quant API always verify TLS; «Disable SSL verification» applies 
   only to the local webserver.
 * Sync status column, admin bar item and «Push to Quant» row action.
 * QUANT_* environment variable and constant overrides.
 * QuantGov dashboard support for the Quant login.
 * Automatic migration of 1.x settings; 1.x WP-CLI commands kept as aliases.
 * Requires PHP 8.2.

#### 1.6.0

 * Feature: Added new Cache tab for manual CDN cache purging (purge all or selective
   paths).
 * Feature: Added «Cache purge on save» option to automatically purge CDN cache 
   when content changes.
 * Feature: Renamed «Quant Enabled» to «Automatic static push» for clarity.
 * Feature: Automatic trailing slash handling – purges both /path and /path/ variants.
 * Improvement: Enhanced error handling and validation for cache purge operations.
 * Improvement: Cache purge now works independently of automatic static push.
 * Tested with WordPress 6.8.2.
 * Updated minimum PHP requirement to 7.4 (previously stated 8.1).

## Meta

 *  Versjon **2.0.2**
 *  Sist oppdatert **4 dager siden**
 *  Aktive installasjoner **100+**
 *  WordPress-versjon ** 6.0 eller nyere **
 *  Testet opp til **7.1.4**
 *  PHP-versjon ** 8.2 eller nyere **
 *  Språk
 * [English (US)](https://wordpress.org/plugins/quant/)
 * Stikkord
 * [cdn](https://nb.wordpress.org/plugins/tags/cdn/)[jamstack](https://nb.wordpress.org/plugins/tags/jamstack/)
   [search](https://nb.wordpress.org/plugins/tags/search/)[static](https://nb.wordpress.org/plugins/tags/static/)
   [static site generator](https://nb.wordpress.org/plugins/tags/static-site-generator/)
 *  [Avansert visning](https://nb.wordpress.org/plugins/quant/advanced/)

## Vurderinger

Ingen omtaler er sendt inn ennå.

[Din omtale](https://wordpress.org/support/plugin/quant/reviews/#new-post)

[Se alle omtalene](https://wordpress.org/support/plugin/quant/reviews/)

## Bidragsytere

 *   [ stooit ](https://profiles.wordpress.org/stooit/)

## Brukerstøtte

Har du noe å si? Trenger du hjelp?

 [Vis brukerstøtteforumet](https://wordpress.org/support/plugin/quant/)

## Donér

Vil du støtte videreutviklingen av denne utvidelsen?

 [ Doner til denne utvidelsen ](https://www.quantcdn.io/)