W3 Total Cache
Igonring directory from JS minify (8 posts)

  1. tripatwhat
    Posted 3 years ago #

    Hello everybody,

    i have a problem with W3 Total Cache JS minify.

    I wanted it to be turned on, but i also want to make it ignore a file in this directory: wp-content/plugins/wp-comment-master/cm.js.

    Now, i've added this path into the text box that says "Never minify the following pages", but it still does include this file into the minified JS and hat breaks my functionality on the frontend.

    Can anybody help me solving this?


    Veljko Simovic


  2. bheadrick
    Posted 3 years ago #

    there's no setting ignore js/css files to minify. Pretty much the only way to exercise any control over what is minified is to use the manual option instead of auto.

  3. tripatwhat
    Posted 3 years ago #

    Actually when you go to minify part in W3TC you will see a text field where you can enter pages or directories you want to exclude from minify.

    1. Or i am not entering the path to the file correctly (i tried absolute and relative)

    2. Or this excluding doesn't work properly.

    It would be great if somebody from W3TC support could assist me on this.

  4. bheadrick
    Posted 3 years ago #

    I'm pretty sure that's referring to whether files are minified on specific pages or directories under which the pages are in - not the files themselves.

  5. tripatwhat
    Posted 3 years ago #

    But when i go to the page cache i see for example this file in exception list: wp-locations.php

    This the file in the root of the website which is not connected directly to any specific page.

    So if this file can be skipped on page cache why shouldn't be possible to skip any of the plugin files in minify?

  6. Frederick Townes
    Plugin Author

    Posted 3 years ago #

    @bheadrik is correct. Latest version has a textarea to exclude JS/CSS files though.

  7. bigj9901
    Posted 3 years ago #

    Does it work? I am not having any luck getting it to not minify specific files either. I'm entering the name of the JS file that I want to not be minified in the "Never minify the following JS files:" field

  8. tripatwhat
    Posted 3 years ago #

    Well i've managed to make it work. When i enter absolute path for each file i want to minify then it works. For example:


    But if you want to do the same with relative path it wont' work. For example, if you insert this kind of path:

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic