• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue Nginx Caching / Cache not Updating

Sally1

Regular Pleskian
Hello,


i have the issue when posting a new post on Wordpress Website, the post not rapper, only when i refresh the browser, the new post appear and when access the next time the website, the post is not shown public.

Is there way that nginx checks with Apache to see if new content is published?

Have CentOS Linux 7.6.1810 (Core)‬ Plesk Onyx
Version 17.8.11 Update #66. with Apache and Nginx Caching activated.

Apache Default Settings, Proxy Mode on, Smart static files processing on, Serve static files directly by nginx ON, Enable nginx caching On

Cache Requests with Cookies : __cfduid

Disable Caching Locations:

/wp-admin/
/wp-login.php
/xmlrpc.php
/wp-(app|cron|login|register|mail).php (or: wp-.*.php)
/feed/
index.php
wp-comments-popup.php
wp-links-opml.php
wp-locations.php
sitemap(_index)?.xml
[a-z0-9_-]+-sitemap([0-9]+)?.xml


Additional Nginx Directives:

# Nginx Expires

location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg)$ {

expires 5m;

add_header Pragma "public";

add_header Cache-Control "public";

}


Thx
 
Back
Top