Support » Plugin: Breeze - WordPress Cache Plugin » Can Breeze caching directly with NGINX?

  • Thank you, this is first cache plugin worked right after install with Nginx on multisite subdomains WP.

    Can Breeze work without PHP-FPM?
    Directly with NGINX?

    Like this:

    set $cache_uri $request_uri;
    
        # bypass cache if POST requests or URLs with a query string
        if ($request_method = POST) {
            set $cache_uri 'nullcache';
        }
        if ($query_string != "") {
            set $cache_uri 'nullcache';
        }
    
        # bypass cache if URLs containing the following strings
        if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|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)") {
            set $cache_uri 'nullcache';
        }
    
        # bypass cache if the cookies containing the following strings
        if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") {
            set $cache_uri 'nullcache';
        }
    
        # default html file
        set $cache_enabler_uri '/wp-content/cache/cache-enabler/${http_host}${cache_uri}index.html';
    
        # webp html file
        if ($http_accept ~* "image/webp") {
            set $cache_enabler_uri '/wp-content/cache/cache-enabler/${http_host}${cache_uri}index-webp.html';
        }

    and than
    location / {
    try_files $cache_enabler_uri $uri $uri/ /index.php?$args;

Viewing 1 replies (of 1 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Hi
    To answer your question, we recommend that PHP-FPM be present for optimal performance.
    You have also mentioned a number of strings based rules. Note that Breeze works on Predefined rules (as demonstrated by the plugin settings).

    • This reply was modified 11 months, 1 week ago by adeelkhan.
Viewing 1 replies (of 1 total)
  • The topic ‘Can Breeze caching directly with NGINX?’ is closed to new replies.