mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: Invalidate broken images cache on Rebuild HTML action
This commit is contained in:
parent
2076f371b3
commit
2b006c0429
3 changed files with 15 additions and 1 deletions
|
@ -513,7 +513,7 @@ class PostsController < ApplicationController
|
|||
guardian.ensure_can_rebake!
|
||||
|
||||
post = find_post_from_params
|
||||
post.rebake!(invalidate_oneboxes: true)
|
||||
post.rebake!(invalidate_oneboxes: true, invalidate_broken_images: true)
|
||||
|
||||
render body: nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue