系统更新站点设置时通知管理员

Unless there were changes I wasn’t aware of (and I don’t think there were), I strongly approve this feature request.

I’ve encountered this issue several times when temporarily lacking disk space.

Every single time, I noticed the setting was disabled only by chance. I didn’t think of looking at setting changes when I reach a disk space threshold, even after experiencing his multiple times.

I’m pretty sure there are many instances in the wild that have this setting disabled without the admin even knowing it, just because they ran out of disk space one year ago.

The setting change is logged in /admin/logs/staff_action_logs?filters=%7B"subject"%3A"download_remote_images_to_local"%7D, but I don’t remember ever getting any notification when it triggers.

Ideally, I’d like either at least a warning in the dashboard, a notification in the user menu, or an email.

The context of the following quote was quite specific (and old), but it also applies here.

An absence of any kind of notification when a setting is changed by @system can be detrimental.


When I notice download_remote_images_to_local has been disabled at some point, I run one of (or both, once) these rails scripts to trigger the download of remote files:

Rebake all posts from a given date

i = 0
Post.where('created_at >= ?', Date.new(2023, 5, 1)).where('user_id > 0').find_each do |post|
  post.rebake!
  puts "Post #{post.id}, Created at #{post.created_at}"
  i += 1
end

puts "Total number of posts rebaked: #{i}"

Rebake all posts between two given dates

i = 0
Post.where('created_at >= ? AND created_at < ?', Date.new(2021, 12, 1), Date.new(2022, 3, 1)).where('user_id > 0').find_each do |post|
  post.rebake!
  puts "Post #{post.id}, Created at #{post.created_at}"
  i += 1
end

puts "Total number of posts rebaked: #{i}"