Image CDN question

This topic contains 6 replies, has 2 voices, and was last updated by  siparker 9 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #61200

    siparker
    Buyer
    Post count: 114

    If i setup a cdn for the image content and use a filter like this

    function my_cdn_upload_url() {
    return ‘http://mk124.yourcdn.com/yoursite/wp-content/uploads’;
    }
    add_filter( ‘pre_option_upload_url_path’, ‘my_cdn_upload_url’ );

    to modify the uploads url before it is called.

    Does GD use these functions to get the upload path and therefore will honour the filters or does it have them hardcoded only?

    If it is hardcoded can i just modify the paths in the DB to make them look int he correct place?

    #61207

    Paolo
    Site Admin
    Post count: 31206

    HI,

    I believe “pre_option_upload_url_path” is WP API. We use a different uploader, not the media library, so I believe this will not work.

    Stiofan was working with another member to add a similar option to GD Booster.

    I’ve flagged this for him so that he can follow up with you.

    Thanks

    #61223

    siparker
    Buyer
    Post count: 114

    ok

    I am not using gdbooster currently as it breaks the site (again due to the very cool but oddly coded theme i am using)

    If there is an alternative then id be up for testing anything to assist.

    #61230

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    at the moment there is no such option at all.

    The Gd Booster solution hasn’t been developed yet. They are working on it. Once that is done, we could see if a similar solution can be added via functions.php of your theme.

    Thanks for your patience,

    #61232

    siparker
    Buyer
    Post count: 114

    ok sure

    are the images pulled from the db entry at the moment? ie could i modify the path there and it work? i understand that might be awkward but perhaps as a stopgap?

    #61238

    Paolo
    Site Admin
    Post count: 31206

    HI,

    we never tested, but it should.

    Just do a backup of your database before testing.

    Thanks

    #61242

    siparker
    Buyer
    Post count: 114

    ok ill try it and report back.

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount