WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Rejected files not rejecting (3 posts)

  1. kg
    Member
    Posted 3 years ago #

    With a statement

    <fb:comments css="www.domain.com/folder/wp-contents/uploads/fbConnect/css/comments.css?327183216> </fb:comments>

    the url is re-written, which is undesirable so I add to Rejected files: ...

    gossip/wp-content/uploads/fbConnect/.*

    but the w3tc output seems to ignore my reject setting...

    <!-- W3 Total Cache: CDN debug info:
    Engine: rscf

    Replaced URLs:
    http://www.domain.com/folder/wp-content/uploads/fbConnect/css/comments.css?1296442086 => http://c0123456.cdn2.cloudfiles.rackspacecloud.com/folder/wp-content/uploads/fbConnect/css/comments.css?1296442086
    -->

    What am i doing wrong or is this a bug? Perhaps the css= has something to do with the issue.

    Thanks in advance.
    kgg

  2. kg
    Member
    Posted 3 years ago #

    No response, so...

    in the file...

    \wp-content\plugins\w3-total-cache\lib\W3\Plugin\Cdn.php

    in the function link_replace_callback() underneath the comment... "Check URL for rejected files"

    and after the foreach block, I added...

    if (preg_match('/' .
    'textinpathtoexclude'
    . '/i', $path)) {
    return $match;
    }

    Which solved my issue. I dont want to be hacky like this, but no response on this in 12 hours forces my to dive in. Additionally, there are no filters in the function link_replace_callback() which would have been useful to avoid plugin file modification.

    Hope this helps.
    kg

  3. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    This is already fixed in the next release sorry. Also wp-contents/uploads/fbConnect* is correct.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic