If you know about NGINX and servers, Webinoly is for you!
0 votes
29 views
by Rookie
edited by

Hello,

I have a problem with my website pages. It's not being purged after adding new posts. I'm using redis cache. So my temporary fix for now is to exclude all pages from being cached. However I don't really have an idea how to exclude all pages by using regex from the documentation.

# Regex supported (sensitive|insensitive)
sudo webinoly -skip-cache='^(one|two)$' -regex=insensitive

I wanted to exclude domain.com/page/2 and so on. How do I implement it? Thank you in advance.

Regards,

Seyntjim

EDIT: Got the right regex code!

sudo webinoly -skip-cache=\/page\/* -regex=insensitive

1 Answer

0 votes
by Expert
selected by
 
Best answer

Please, read the documentation!

  • First of all, Webinoly doesn't have Redis Cache support for pages (only for Object Cache).
  • In case you are using Webinoly FastCGI Cache, you can deactivate it. It's just as simple as that!
  • You need a WP plugin to purge the server cache when a post is created or updated. Webinoly gives a lot of warning messages about it, but seems like is not enough!
  • Regex should be entered with single quotes.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...