WordPress.org

Making WordPress.org

Changes between Version 2 and Version 3 of Ticket #1116


Ignore:
Timestamp:
07/09/2015 11:27:55 PM (3 years ago)
Author:
iandunn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1116 – Description

    v2 v3  
    1 The plugin uses the mShots service to generate the site screenshots, but those are built asynchronously when the first request is received, and then cached for 21 days.
     1The plugin uses the mShots service to generate the site screenshots, but those are built asynchronously when the first request is received, and then retained for 21 days.
    22
    3 Because of that, users will see the default `Generating screenshot...` image instead of the actual screenshot. To avoid that, we should have a network-wide cron job that makes non-blocking HTTP requests for each of the images every 20 days, so that they're always available when a user needs them.
    4 
    5 The requests will need to append `requeue=true` to the URL, to flush the cached image and generate a new one, resetting the cache expiration.
     3If the image isn't requested at least once every 21 days, it will be deleted. If that happens, users will see the default `Generating screenshot...` image instead of the actual screenshot when they first load the Cloner. To avoid that, we should have a network-wide cron job that makes non-blocking HTTP requests for each of the images every 20 days, so that they're always available when a user needs them.
    64
    75It should sleep for ~2000 milliseconds between each request to be polite, or maybe process them in small batches.