Want more timely Centmin Mod News Updates?
Become a Member

Nginx The ?: prefix is a 'non-capturing' mark

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by rdan, Jun 2, 2022.

  1. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:22 PM
    Mainline
    10.2
    Some performance benefits?
    It says here:
    Nginx Configuration Examples » KBeezie

    On CMM:
    centminmod/staticfiles.conf at master · centminmod/centminmod

    You just use:


     
  2. eva2000

    eva2000 Administrator Staff Member

    54,601
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:22 PM
    Mainline
    10.2
    I already applied it on my live site, already done testing and works fine.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,601
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Was talking more about testing performance differences as not sure how much benefit it would be given Centmin Mod Nginx also uses PCRE JIT/PCRE2 JIT. But if folks want to switch their staticfiles.conf to non-capturing mark, you can do it easily using instructions using sed replacements at centminmod /usr/local/nginx/conf/staticfiles.conf non-capture mark regex switch

    Probably wouldn't hurt to eventually use this in staticfiles.conf by default though :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,601
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+