mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 12:38:21 -05:00
Revert "FIX: Always clear caches after committing the current transaction" (#22493)
This reverts commit 8310c7842c.
This was breaking precompilation.
This commit is contained in:
@@ -19,12 +19,4 @@ class DistributedCache < MessageBus::DistributedCache
|
||||
self.defer_set(k, value)
|
||||
value
|
||||
end
|
||||
|
||||
def clear(after_commit: true)
|
||||
if after_commit
|
||||
DB.after_commit { super() }
|
||||
else
|
||||
super()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user