Remove :mystery: query cache cleaner.
Simplify logic.
Fix all deprecations related to test/models/post_test.rb.