• The slideshow gallery 2 plugin inserts image URL’s that it’s going to rotate as <span>plaintexturl</span> and obviously these do not get replaced by W3 Total Cache as they are not image SRC’s etc.

    Is there a way to interact with W3 Total cache from other plugins to detect the CDN URL? So they can do their own replace.

    Or should there be a filter on the W3 Total cache regular expressions for the CDN URL replacements so other plugins can add extra regular expressions for URL replacements?

    Or I suppose the other way is contact Slideshow Gallery 2 and ask them to implement that URL as a an image hidden with CSS. I’m not sure if there are other situations where the CDN URL replacement functionality may need to be extended/modified.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Frederick Townes

    (@fredericktownes)

    What is the path to the images that you’ve added to the custom files box on the CDN settings tab?

    Thread Starter WPsites

    (@wpsites)

    I have the following in the custom file box:

    http://www.website.com/wp-content/upLoads/*
    wp-content/upLoads/*

    Along with the the default entries in there. I only put those in there just now as a test, they were not in before since the slideshow images do get their initial URL’s rewrote and they are in exactly the same format as far as the url goes.

    The problem is not with the URL as such. As far as I can see W3 only replaces URL’s with CDN URL’s when the URL is in quotes, say in a image SRC or a script SRC. If the image is just plain text in a span (<span>http://site.com/</span&gt;) then it does not get rewritten.

    Slideshow Gallery 2 adds image URL’s for it’s slideshow inside spans which just do not get replaced. Slideshows with large images need to come from the CDN so something needs to change. I’m guessing Slideshow Gallery 2 should change and implement URL’s inside a hidden image rather than hiding them in a span.

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    That’s correct, W3TC will not rewrite non-attribute values. Is this kind of implementation popular?

    Thread Starter WPsites

    (@wpsites)

    I’ve never noticed anyone do anything like this before no. But then again there are lots of things I don’t notice!

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Ok, there are lots of cases to support here, so i think it’s quite risky to try to replace every single possible media file in a given page on most servers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: W3 Total Cache] CDN URL's not getting replaced for Slideshow Gallery 2’ is closed to new replies.