• Hi, guys
    Thank you for great plugins! It’s very usefull

    As several other people i have found that exclude css/js list does not work properly.

    I have found two solution for it:
    1. Write in exclude list full path to file, like:
    http://your-domain.com/wp-content/themes/jcarusel/jcarusel.css
    but it’s not comfortably for me

    2. Edit function ‘doCombine’ in file ‘cdn-sync-tool\lib\Cst\JsCss.php’:
    Change

    if (in_array($file, explode("\n",$filesConfig["exclude_js"])) ||
    in_array($file, explode("\n",$filesConfig["exclude_css"]))) {
    continue;
    }

    to

    if (in_array(basename($match[1]), explode("\n",$filesConfig["exclude_js"])) ||
    in_array(basename($match[1]), explode("\n",$filesConfig["exclude_css"]))) {
    continue;
    }

    then use only file name in exclude list (ex.: jcarusel.css)

    maybe you will whant to patch your plugin … and optimize code

    Good luck!

    http://wordpress.org/extend/plugins/cdn-sync-tool/

The topic ‘[Plugin: CDN Sync Tool] Solution for 'doesnot work exclude css/js list'’ is closed to new replies.