• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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