Attempt very aggressively to clear cache

This commit is contained in:
Sam 2018-06-07 20:10:52 +10:00
parent 3291f2c0eb
commit 8b88b71309
2 changed files with 3 additions and 1 deletions

View File

@ -180,4 +180,6 @@ Migration::TableDropper.delayed_drop(
} }
) )
STDERR.puts "Resetting Active Record Cache"
Discourse.reset_active_record_cache Discourse.reset_active_record_cache
ActiveRecord::Base.connection.close

View File

@ -22,7 +22,7 @@ end
require_relative 'lib/discourse_narrative_bot/welcome_post_type_site_setting.rb' require_relative 'lib/discourse_narrative_bot/welcome_post_type_site_setting.rb'
after_initialize do after_initialize do
SeedFu.fixture_paths.unshift Rails.root.join("plugins", "discourse-narrative-bot", "db", "fixtures").to_s SeedFu.fixture_paths << Rails.root.join("plugins", "discourse-narrative-bot", "db", "fixtures").to_s
Mime::Type.register "image/svg+xml", :svg Mime::Type.register "image/svg+xml", :svg