This shortcode allows you to turn on Nodalio’s OneCache on a site installed on your server.
Shortcode usage format:
- sudo nodalio cacheon domain.com onecache
- primary.com – your site’s primary domain/subdomain.
- onecache – Nodalio’s OneCahe
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.