ianmjones
Forum Replies Created
-
Can you selectively move/upload files to storage? Or does it move everything that’s uploaded?
There’s filters for that …
as3cf_allowed_mime_types
:-
https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront-tweaks/blob/96d9fc03ffcfdc1d2e77b0a1a53891e6e1a76e30/amazon-s3-and-cloudfront-tweaks.php#L387or …
as3cf_pre_upload_attachment
:-
https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront-tweaks/blob/96d9fc03ffcfdc1d2e77b0a1a53891e6e1a76e30/amazon-s3-and-cloudfront-tweaks.php#L437Does either version have WP-CLI support?
No, WP Offload Media does not add any WP-CLI commands, yet.
That’s weird, WP Offload Media explicitly sets that Content-Encoding metadata.
Maybe best to just not allow WP Offload Media to gzip the file…
function my_disable_as3cf_gzip_mime_types( $mime_types, $media_library ) { return array(); } add_filter( 'as3cf_gzip_mime_types', 'my_disable_as3cf_gzip_mime_types', 10, 2 );
We’re thinking about taking out this functionality as most bucket / CDN providers do their own gzip stuff these days.
If you used the “Remove Files From Server” option, then you’ll need to manually download the files from S3 and put them back in place.
WP Offload Media has that “Download all files from bucket to server tool”, along with “Remove files from bucket” and other handy tools.
Nothing in the debug.log when you turn on WP_DEBUG and WP_DEBUG_LOG?
WP Offload Media only offloads media properly registered into the Media Library (database).
Yes, WordPress creates thumbnail sizes that match the requirements of your theme and plugins so that they have smaller more specific images to use.
WP Offload Media offloads these files too.
If you’re using the default us-east-1 region, you don’t specify anything bar “s3” as part of the Cloudflare DNS target.
cdn.domain.com.s3.amazonaws.com
If your bucket is in a different region than the default, then you use the region…
cdn.domain.com.s3-eu-west-2.amazonaws.com
You should **never** include the “-website-” bit, that’s for static website hosting only.
- This reply was modified 4 years, 11 months ago by ianmjones.
WP Offload Media does not have an automatic invalidation function.
Why do you need this?
Are you using Object Versioning?
https://deliciousbrains.com/wp-offload-media/doc/object-versioning-instead-of-cache-invalidation/
When you migrated the site to a different location, and therefore different URL path for media and other links, did you properly search/replace the database contents to update all URLs embedded in content?
WP Offload Media Lite does not resize images, it only offloads what files are available.
Please check the files on your server, I expect they are just as weirdly weighted.
You should consult with whoever authors the thumbnail generation process, whether that is WordPress or an optimizer plugin.
Be careful to use an up to date version of Smush, older versions are incompatible with WP Offload Media Lite 2.3+.
Otherwise, please check what actions Smush is doing when viewing the Media Library, that will likely give you a clue as to where the problem is.
> Does free version need cron job setting ?
No, not that I can think of.
Would be interested in hearing if any of you have plugins installed that may handle image optimization or dynamic cropping?
If so, what happens if you deactivate those plugins, does the problem go away?
What does the
amazonS3_info
record in the postmeta table look like for the record withpost_id
= 7996?Also, what its related
_wp_attached_file
and_wp_attachment_metadata
values?as3cf_assets_scan_files_for_s3_cron
isn’t used any more, and related to the old (dead) Assets addon that has been superseded by the Assets Pull addon, both of which are for Pro only.Where did you get this info about
as3cf_assets_scan_files_for_s3_cron
?