Media Library Latency, Lag, CRON?

When I add images to my Media Library they aren’t available in the Media Library for about an hour. It seems like there is a queue or some sort of CRON that fires.

WordPress handles uploads immediately, there is no latency, queues, or cron unless you introduce one yourself.

The image appears in the media library as a transparent image for the hour.

The images were working previously but I’m now uploading to S3 with a CRON that fires every minute. Maybe that relates to the issue.

This is the reason why it doesn’t work, 100%. At a minimum there will be a minute of latency as a result of what you’ve done, assuming that the files are served instantly from S3, but that may not be the case. There may be latency on S3, but that’s unconnected to WordPress.

So, lets pick that part:

  1. S3 can take time for files to become available, a quick google search shows people who uploaded things but they took 24 hours to become available. You’ll need to configure your S3 buckets appropriately, but that’s not a WordPress question or problem.
  2. Your setup doesn’t improve your performance much, at best it might shave a little bit of bandwidth usage, but your server still gets hit for every request for an uploaded image
  3. There are a tonne of plugins for this, and they rewrite the attachment URLs to go straight to S3, avoiding the need for a proxy, and even do the uploading on upload, so no need for a cron job either