Want more timely Centmin Mod News Updates?
Become a Member

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

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 13, 2021.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:06 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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 https://github.com/centminmod/centminmod/issues/142
    - 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

    # 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=

    # 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...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.