Fixed #23947 -- Django's test suite doesn't pass in reverse order

Fixed inconsistent tests when running Django's test suite with --reverse option.
Is this get_cache correct? because this test seems the same of the test after it `test_close_deprecated`