• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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