• Resolved kieronboz

    (@kieronboz)


    Hi, simple one, when including/excluding directories in various settings etc, should we be comma delimiting them or not?

    eg the setting Never minify the following?JS?files: should this be a comma list, or line by line?

    And is this the same for all settings? eg Never minify the following pages: & Additional pages: under purge policy?

    Thanks!

    • This topic was modified 1 year, 3 months ago by kieronboz.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kieronboz

    Thank you for reaching out and I am happy to assist you with this,.

    For all fields is the same, and you should use one per line and not use a comma delimiter.
    So for Never minify the following?JS?files:

    /wp-content/plugins/some-plugin/js/file-1.js
    /wp-content/plugins/some-plugin/js/file-2.js
    /wp-content/plugins/some-plugin/js/file-3.js

    If you are adding exceptions for pages, again add one per line:

    /some-page/
    /some-page1/
    /some-page2/
    /some-page3/

    I hope this helps!

    Thanks!

    Thread Starter kieronboz

    (@kieronboz)

    Thanks @vmarko – does the second example, for specifying exceptions, accept wildcards?

    Eg

    /competitions/
    /competitions/*
    /upcoming-competitions/

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kieronboz

    Yes, as you can see in the description, yes, the regex is supported with exceptions.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Comma delimited or not?’ is closed to new replies.