WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tripatwhat
    Member
    Posted 1 year 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?

    Thanks,

    Veljko Simovic

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. bheadrick
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. bigj9901
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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:

    http://www.yourdomain.com/wp-content/plugins/plugin/somefile.js

    But if you want to do the same with relative path it wont' work. For example, if you insert this kind of path:
    wp-content/plugins/plugin/somefile.js

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic