WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Multisite - CDN Pull - SubDomain Images (5 posts)

  1. WACKA1
    Member
    Posted 1 year ago #

    Hi,

    Love this plugin, has saved me sooo many times.
    I am now using it on multisite but I have an questions about cdn images in the subdomains:

    - I have enabled CDN (using cloudfront/origin pull) in my network settings so WP super cache.
    - I have added the following include directories: wp-content, wp-includes, files
    - On the main site my uploaded images and theme files are being served through the CDN.
    - On the subsites only the theme files are being served through the CDN.

    My question is if this is just a limitation of the plugin, or should these subdomain images be served from the CDN.

    Many thanks,

    Conor

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. nicollb
    Member
    Posted 1 year ago #

    I'm seeing the same thing on my multi-site network: main site works as expected; subdirectory site (I have only one set up so far) only uses the CDN for the theme files.

    Is this something I have configured incorrectly?

    my offsite address is specialstuffxxx.cloudfront.com/en for the subdirectory site
    ----

    Nevermind. Mine is working. I had forgotten to add files to the list of directories; after adding that, I cleared/deleted the cache and now it works.

  3. laurenng
    Member
    Posted 4 months ago #

    Sorry for resurrecting an old thread, but @nicollb, can you explain what you mean by "add files to the list of directories"? I'm having this problem now and an explanation of this solution would certainly help me!

    Thanks,
    Lauren

  4. nicollb
    Member
    Posted 4 months ago #

    Laurenng: It took a minute to figure out what I meant, but I think I can explain:

    Under the CDN tab (WP-Supercache settings) there is a place to put the Include Directories: I had forgotten to add "files" to the list of included directories.

    My setting now reads: wp-content,wp-includes,files

    When you have a multisite set up, at least on mine, the url (path) for things like images, etc, is not .../wp-content/... , it is sitename/files/...

    Example: http://cdn1.famvin.org/en/files/2012/09/vinFormation-ad-smaller2.png

    if this were the top-level is would read: http://cdn1.famvin.org/wp-content/uploads/2012/09/vinFormation-ad-smaller2.png (that image doesn't exist at this level on my network.)

  5. laurenng
    Member
    Posted 4 months ago #

    Thanks for the reply @nicollb! That helped me out a bit!

    I'm using a sub-directories install, so my set up needed wp-content/uploads/sites/* to be in the list of included directories.

    It correctly has my CDN pull all my in-post images, but not the featured images nor any image I've added into the sidebar. Looks like I must have another problem I'm dealing with - but I appreciate your help in this one!

    Best,
    Lauren

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic