From b819715799f41c58f92918d9b218aa3d2fa87bf0 Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 25 Nov 2022 00:48:19 +0800 Subject: [PATCH] Fix bug. --- app/models/concerns/ruling_bus_concern.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/models/concerns/ruling_bus_concern.rb diff --git a/app/models/concerns/ruling_bus_concern.rb b/app/models/concerns/ruling_bus_concern.rb new file mode 100644 index 0000000..b6cb440 --- /dev/null +++ b/app/models/concerns/ruling_bus_concern.rb @@ -0,0 +1,8 @@ +module RulingBusConcern + extend ActiveSupport::Concern + included do + end + def delete_page_cache_custom + PageCacheModel.where(:page_id.in=>PagePart.where(:id.in=>SubPart.where(:module=>'ruling_bus').pluck(:page_part_id)).pluck(:page_id)).delete + end +end \ No newline at end of file