Title: Major upload performance issues using Cloudfront CDN
Last modified: September 21, 2022

---

# Major upload performance issues using Cloudfront CDN

 *  Resolved [Chad Reitsma](https://wordpress.org/support/users/chadreitsma/)
 * (@chadreitsma)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/major-upload-performance-issues-using-cloudfront-cdn/)
 * When Cloudfront CDN is active, uploading and deleting images from the media library
   takes an extremely long time (15-30 seconds) and sometimes times out / fails.
   The image seems to upload correctly but WordPress shows a warning.
 * All of the images I tested were under 200KB, disabling the CDN makes the uploads
   fast again.
 * Screenshot:
    [https://snipboard.io/aKEBJb.jpg](https://snipboard.io/aKEBJb.jpg)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Chad Reitsma](https://wordpress.org/support/users/chadreitsma/)
 * (@chadreitsma)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/major-upload-performance-issues-using-cloudfront-cdn/#post-16031226)
 * Looks like the issue is because of auto-purging… we have enabled the “Only Purge
   CDN manually” and that fixed it. We always purge the CDN manually anyways.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/major-upload-performance-issues-using-cloudfront-cdn/#post-16031354)
 * Hello [@chadreitsma](https://wordpress.org/support/users/chadreitsma/)
 * Thank you for reaching out and thank you for your feedback on this.
    The “Only
   Purge CDN manually” will be enabled by default in future releases once the CDN
   type Cloudfront is selected. The main reason for this is due to the huge bills
   that Autopurge can cause once the bulk of the images are uploaded In the use 
   case such as yours, and when the “Only Purge CDN manually” is not enabled, the
   CDN purged the cache after every image is uploaded. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Major upload performance issues using Cloudfront CDN’ is closed to new
replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [media library](https://wordpress.org/support/topic-tag/media-library/)
 * [Slow Upload](https://wordpress.org/support/topic-tag/slow-upload/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/major-upload-performance-issues-using-cloudfront-cdn/#post-16031354)
 * Status: resolved