Nginx caching settings displayed in the Plesk interface correspond to
nginx directives and certain records in the nginx configuration file.
You can see the details in the table below.
Nginx microcaching setting displayed in the Plesk GUI | The corresponding nginx directive | The corresponding nginx parameter (if any) |
---|---|---|
“Cache size“ | proxy_cache_path | max_size |
“Cache timeout“ | proxy_cache_valid | |
“Cache key“ | proxy_cache_key | |
“Cache requests with cookies“ | Specified in the nginx configuration file | |
“Disable caching for locations“ | Specified in the nginx configuration file | |
“Bypass cache when” | proxy_cache_bypass | |
“Return stale cached records” | proxy_cache_use_stale |
Note: For websites using nginx in tandem with the PHP-FPM handler,
proxy_cache*
directives are replaced with fastcgi_cache*
. For
example, the “Cache key“ setting is governed by the
fastcgi_cache_key
directive instead of proxy_cache_key
.