WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Disable Photon for certain images/pages? (10 posts)

  1. geckoc
    Member
    Posted 1 year ago #

    Wondering if there is anyway I can disable Photon for certain images or pages.

    IE: I have a page of pics updated daily (hotlinked from other sites). That end up permanently cached via photon.

    please and thanks anyone in the know.

    http://wordpress.org/extend/plugins/jetpack/

  2. quacos
    Member
    Posted 1 year ago #

    Same issue here.

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I'm afraid it's currently not possible to disable Photon for specific Posts or Pages.

    If you want to update or change an image that you've already posted, you'll need to change its name.

  4. quacos
    Member
    Posted 1 year ago #

    Is it possibile to disable Photon for external images?

  5. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I am afraid not, since Photon parses and detects all images in your posts, regardlesss of their origin.

  6. caffeinewriter
    Member
    Posted 7 months ago #

    I wonder if it'd be possible to do a workaround using a div with the background-image CSS property. I haven't tried this personally, but it seem feasible. Thoughts?

  7. Udi
    Member
    Posted 6 months ago #

    Looking for this kind of solution as well. I have an external image that updates itself on daily basis but it's with the very same name each day.
    Any code that can be added to the image link so the Photon will ignore it?

  8. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    As I mentioned in the other post by Udi, this code might work for some people:

    function my_photon_exception( $val, $src, $tag ) {
            if ( $src == 'YOUR_IMAGE_URL' ) {
                    return true;
            }
            return $val;
    }
    add_filter( 'jetpack_photon_skip_image', 'my_photon_exception', 10, 3 );

    Also have a look at this post:

    http://ethitter.com/2013/07/disable-jetpacks-photon-module-in-specific-situations/

  9. spg1000
    Member
    Posted 6 months ago #

    Please can someone tell me if I try and then disable photon will my site revert back to exactly the way it was before I tried it? Or could there be some ill effects/changes to my sight or images after photon's switched off?
    Thanks

  10. Udi
    Member
    Posted 6 months ago #

    spg1000,

    Photon is only a caching system of your images.
    It doesn't affect your site or images at all.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic