• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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