• Resolved Marianne Topping

    (@tullemomsemor)


    I have tried Photon but turned it off a long time ago.
    Today I had a very high serverload, so much so that it turned into a big problem.

    Looking i my logs a found more that 45.000 hits with Photon in them, like:

    “GET /blog/wp-content/uploads/2015/07/Laila-B-Thomsen%E2%80%8E%E2%80%8E_28-07-2015%E2%80%8E.jpg HTTP/1.0” 200 428221 “-” “Photon/1.0”

    I really need to get Photon to stay away, what can I do??

    Regards, Marianne

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    That can indeed happen, as anyone can use Photon to request an image, even if the site hosting the image doesn’t use Photon. For example, I could force Photon to query and cache an image from Google’s homepage, like so:
    https://i0.wp.com/www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png

    This will only generate one request, though, as once the image is cached Photon won’t need to query the original source to return the image.

    However, if you have multiple images on your site, if the image is available in different sizes, or if someone uses Photon to request these images on your site, Photon will need to make multiple requests to cache each image, and each resized version of each image. That may add up to a significant amount of hits.

    I really need to get Photon to stay away, what can I do??

    If you’re not using Photon on your site, and if you don’t want Photon to be able to make any requests to images on your site, you can block the Photon/1.0 User Agent in your .htaccess file, as explained here:
    http://stackoverflow.com/a/7372572/1045686

    I hope this clarifies things a bit.

Viewing 1 replies (of 1 total)

The topic ‘Photon causing server load’ is closed to new replies.