The wp-cli help s3io optimize command should get you going. Using WP-CLI allows you to avoid any timeouts, and solves a whole host of issues with long-running processes. If the last option has you groaning, see if your web host supports WP-CLI. This way you can optimize a single bucket by configuring each folder within the bucket, running the S3 Bulk Optimizer, and then moving to the next folder. If that still doesn’t work, use the S3_IMAGE_OPTIMIZER_FOLDER setting above to restrict optimization to a specific folder. If you have configured S3 IO to optimize all your buckets, try a single bucket to see if that will work. Use WP-CLI to optimize your buckets from the command line, especially useful for large buckets or scheduling bulk optimization: wp-cli help s3io optimizeįAQ What happens if I have so many images that the S3 Bulk Optimizer keeps timing out?.Use Media->S3 URL Optimizer to optimize specific images by their url/address.Go to Media->S3 Bulk Optimizer to start optimizing your bucket(s).If your IAM user does not have access to list all buckets, you will generally also need to configure the region, something like this:ĭefine( ‘S3_IMAGE_OPTIMIZER_REGION’, ‘eu-west-1’ ) These override the bucket list on the settings page, and will look like this (note the lack of leading/trailing slashes on the folder setting):ĭefine( ‘S3_IMAGE_OPTIMIZER_BUCKET’, ‘my-amazing-bucket-name’ ) ĭefine( ‘S3_IMAGE_OPTIMIZER_FOLDER’, ‘wp-content/uploads’ ) You may also define constants to restrict S3 IO to a specific bucket and/or sub-folder: S3_IMAGE_OPTIMIZER_BUCKET and S3_IMAGE_OPTIMIZER_FOLDER. Leave it empty to have the plugin optimize all your buckets. Enter the buckets you wish to optimize in the appropriate text area.Setup your AWS access keys, and then enter your access keys on the S3 IO settings page and save to confirm them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |