Your InMotion Central production site will have the ability to use NGINX caching, this can result in faster website performance since it does not have to generate content in real-time. You can select from pre-configured profiles that are built for specific types of websites. Here we will explain how to view the caching profiles available for use and change the Nginx UltraStack caching profile.
UltraStack Cache Profile Options
- No Caching
- SSH Command: no_caching
- Turns caching off but you will still have static content acceleration and brute force rate-limit protection running
- WordPress
- SSH Command: wordpress
- General-purpose profile compatible with most WordPress and WooCommerce site, but it is recommended to use a cache-control plugin such as W3 Total Cache to handle purging (clearing) the cache when content is updated
- WordPress Multisite
- SSH Command: wordpress_multisite
- This is the same as the WordPress profile but built specifically for Multisites (Networks) but allows Apache to perform required path rewrites by disabling Accelerate Static Content
NOTE: This is the best option to use with W3 Total Cache, because it would allow minify and concatenate functions to work appropriately and you can set the page cache to store on disk, which would serve it from NGINX cache directly before reaching the application level on request.
-
WordPress Microcache
- SSH Command: wordpress_microcache
- Recommended for sites where full page caching is not a good option due to the dynamic nature. This can help neutralize high increases in traffic to your site
-
Pass All
- SSH Command: pass_all
- Select this to pass all traffic to Apache in case you do not want to utilize any caching, ratelimit protection, or optimizations
-
Honor Headers
- SSH Command: honor_headers
-
As per Platform i, this profile “Honors the Cache, Expires, and X-Accel-Expires headers set by the application. If not set, a default 60 second expiration time is used. All other values match the WordPress/Generic profile"
NOTE: This can be used with W3 Total Cache effectively as well, because it allows you to modify or customize the response headers to control cache on the client-side, server, and CDN levels.
Select UltraStack Cache Profile in InMotion Central
- Log into InMotion Central
- Select the project you’d like to manage
- Click the Manage Server link in the navigation menu
- Click NGINX Settings
- You will then see a list of the available NGINX profiles, select the one you want to use then click the Update Profile button
Select UltraStack Cache Profile using SSH
- Connect to your server via SSH
-
Run the following command to select your caching profile
usutil -u USER -d DOMAIN -p PROFILEEXAMPLE: The following command would set the domain example.com to the WordPress Multisite cache profile.
usutil -u root -d https://example.com -p wordpress_multisiteREPLACE: USER with the correct username, DOMAIN with the URL associated with the site, and PROFILE with the cache profile that is intended to be set.
NOTE: For the full list of profile names to use in the SSH command see the section UltraStack Cache Profile Options above.
Comments
0 comments
Article is closed for comments.