Welcome to Centmin Mod Community
Register Now

Beta Branch update centmin.sh menu option 22 wordpress installer in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 5, 2021.

  1. eva2000

    eva2000 Administrator Staff Member

    46,825
    10,620
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,482
    Local Time:
    7:04 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    update centmin.sh menu option 22 wordpress installer in 123.09beta01


    - fix and properly account for ?wc-ajax Woocommerce plugin requests for cache bypass for new installs using Cache Enabler method of guest full HTML page caching 405 error for /?wc-ajax=get_refreshed_fragments ajax callbacks with Cache enabler method · Issue #142 · centminmod/centminmod
    - existing installs can for now manually edit their include file at /usr/local/nginx/conf/wpincludes/${vhostname}/wpcacheenabler_${vhostname}.conf where ${vhostname} is your domain name for wordpress cache enabler install and add wc-ajax query string cache bypass. This only applies or relevant to folks using Woocommerce plugin. Non-Woocommerce Wordpress sites won't be impacted by this bug.

    so you change from

    Code (Text):
        # bypass cache if URLs containing the following strings
        if ($request_uri ~* "(\?add-to-cart=|\?wc-api=|/cart/|/my-account/|/checkout/|/shop/checkout/|/wp-json/|/store/checkout/|/customer-dashboard/|/addons/|/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';
        }


    to adding |\?wc-ajax=

    Code (Text):
        # bypass cache if URLs containing the following strings
        if ($request_uri ~* "(\?add-to-cart=|\?wc-ajax=|\?wc-api=|/cart/|/my-account/|/checkout/|/shop/checkout/|/wp-json/|/store/checkout/|/customer-dashboard/|/addons/|/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';
        }


    Continue reading...

    123.09beta01 branch