For my personal WP blog I use default settings.What configuration do you usually use here?
I have enabled Cloudflare for my WP blog and I set nothing special here.Is there any additional configuration required for sites that use Cloudflare?
Do you know why here is displaying "BYPASS"?
View attachment 14176
These are my nginx microcache settings.
View attachment 14175
Hi,
I am with plesk 17.5 and I cant find where to enable micro caching. Is it somthing new to plesk 17.8?
So what's the purpose of nginx microcache if it does not help save site resources ?With micro-caching, Nginx only serve cache if the next upstream (Apache) is down. It provide a way to avoid error 502 bad gateway but it doesn't server a static version of your website if Apache is running properly.
So what's the purpose of nginx microcache if it does not help save site resources ?
I had actually noticed that the "proxy_valid" directive was something like: proxy_valid "XXXXX" when it should actually be: proxy_valid 200 "XXXX".
That does not make much sense.
In my plesk it is written "nginx cache". This type of cache is very strange.
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:75m inactive=24h max_size=512m;
server {
server_name yourwebsite.tld www.yourwebsilte.tld;
root /var/www/yourwebsite.tld/system/nginx-root;
access_log /var/log/nginx/yourwebsite.tld.access.log rt_cache_redis;
error_log /var/log/nginx/yourwebsite.tld.error.log;
add_header X-Cache-Status $upstream_cache_status;
location / {
proxy_cache STATIC;
proxy_cache_valid 200 10m;
proxy_cache_valid 404 1m;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
proxy_ignore_headers Set-Cookie;
proxy_hide_header Set-Cookie;
proxy_hide_header X-powered-by;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
expires 10m;
}
location ~ ^/(?:ghost|signout) {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:2368;
add_header Cache-Control "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0";
}
add_header X-Cache-Status $upstream_cache_status;
set $no_cache "";
set $cache_cookie $http_cookie;
if ($cache_cookie !~ "^\s*$") {
set $no_cache 1;
}
location / {
proxy_pass https://XXX.XXX.XXX.XXX:7081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
proxy_cache_key "$scheme$request_method$host$request_uri";
proxy_no_cache $no_cache $http_pragma $http_authorization $arg_nocache;
proxy_cache_bypass $no_cache $http_pragma $http_authorization $arg_nocache;
proxy_cache yourwebsite.tld_proxy;
proxy_cache_valid "5";
proxy_cache_use_stale http_500 http_502 http_503 http_504 updating;
proxy_cache_background_update on;
}
Yes, I understand that it is possible to use custom rules, but the default configuration of Plesk is meaningless. They promised a major update in March on performance. Yeah, it's all marketing.
... and would like to enable caching globally for everyone.
So, as it is written in the documentation, this feature only makes sense for popular blogs or news websites.
When we are talking about nginx microcache it is not necessary to put a big time like 10min. Only 15s for example already produces significant results. This is because when nginx needs to update the cache it requests from the machine itself (localhost connection) if it is properly configured.Plesk 17.8 is a major update on performance, especially for the Plesk web interface. But Nginx cache cannot be (fully) automatically configured & optimized by Plesk. For example, the static cache configuration used on my Ghost blogs require to use an external comments system and any modification on the website is visible 10 minutes later.
Application Load Testing Tools for API Endpoints with loader.ioI'd love to see this site that gets 10,000 requests a minute....