1. Home
  2. Docs
  3. Caching
  4. OneCache


This shortcode allows you to turn on Nodalio’s OneCache on a site installed on your server.

To run Nodalio shortcodes on your server, please follow this guide.

Shortcode usage format:

  • sudo nodalio cacheon onecache

Shortcode reference:

  • – your site’s primary domain/subdomain.
  • onecache – Nodalio’s OneCahe

Technical reference:

Nodalio’s OneCache uses advanced PHP caching to transparently store your site’s cache. Its best used in cases where you want your server to cache the latest site content while leaving your sites in a virtual cacheless state. In most cases, its much faster than WordPress plugin based caching solutions, as your visitors will get the site contents quicker, with an option to force the content load directly from the server cache. Your website will be automatically sampled every second to create a requested cache store. This avoids server processing to generate dynamic content for every visit. Nodalio’s OneCache will update the most recent requested site contents, useful for when your sites start to grow.

Nodalio’s One cache is also a good DDoS solution and useful for unexpected traffic surges as your site contents will be sampled for updates only once per second. This means that if you receive a sudden surge of 1K visitors per second, the server will generate the dynamic content only once per second. To further enhance this functionality with more efficiency you may use Nodalio’s OptiCache shortcode.

Nodalio’s WordPress plugin, if installed and activated, will automatically flush the server cache in cases of most content updates. With Nodalio’s OneCache this is not required as in most cases your requested content will be sampled and re-cached every second. If your specific content does not automatically trigger flushing the cache, you may flush the cache manually or adapt the plugin code to your specific use cases.

To find out which caching tool is currently active on your site, you may use the siteinfo shortcode.

Shortcode format in the Nodalio Dashboard:

Shortcode result in the Nodalio Dashboard:

Was this article helpful to you? Yes No

How can we help?