Caching
Cito has a built-in page-cache feature, boost to accelerate Wordpress and Woocommerce websites. It's designed to offer extremely fast performance and minimal overhead.
Caching is still in beta which means you should use it carefully. We recommend testing it on staging sites first to ensure there is no unusual cache behaviour.
By default, we cache resources for 6 hours.
How to enable & disable the cache
Use the psboost
command:
Usage: psboost -d <domain> -e (enable) -x (disable) -p (purge)
-d: Domain name (required).
-e: Enable Boost.
-x: Disable Boost
-p: Force a cache purge
Example: psboost -d test.com -e
(Enables Boost on test.com).
How to tell if a page is cached
We have a response header added to all sites using Accel: x-prostack-boost
There are 3 statuses:
HIT: This indicates the page is being served from cache.
MISS: The page is not being served from cache
BYPASS: The page is bypassing the cache- because there’s a rule to exclude it. Usually used on shopping cart pages or logged in areas, such as wp-admin.
Note: the first hit for any page will always be a MISS
unless the cache is already populated. In testing you should always test twice.
Cache Purging
Purging all
Call psboost
with the -p
flag and the domain name. This will forcibly purge the cache for your domain.
To enable purge-on-change (i.e. purge a specific page when it is updated or changed) you need a plugin. We recommend Nginx Helper.
Once Nginx Helper is installed you can enable it via "Nginx Settings". Simply tick the "Enable Purge" checkbox and ensure the Caching Method setting is "nginx FastCGI cache". This is the default.
Troubleshooting
If you wish to add a custom rule (e.g. to exclude a page or cookie from caching) contact Support.