summaryrefslogtreecommitdiff
path: root/tests/cache
AgeCommit message (Collapse)Author
2019-01-10Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette
favor of databases.
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-08-17Fixed #29626, #29584 -- Added optimized versions of get_many() and ↵oliver
delete_many() for the db cache backend.
2018-08-16Optimized some cache tests with set_many().oliver
2018-07-09Fixed #20584 -- Fixed memcached's get_many() with single-use iterators.Christian Barcenas
Thanks Guyon Morée for the report.
2018-05-09Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert
2018-04-27Fixed #27480 -- Added cache.touch().Nicolas Noé
2018-03-03Refs #17476 -- Removed obsolete simplification of timezone names in cache ↵Sergey Fedoseev
key generation.
2018-02-06Fixed #28833 -- Prevented CacheMiddleware from caching responses with ↵shanghui
"Cache-Control: private".
2018-01-24Fixed #28977 -- Changed local-memory cache to use LRU culling.Grant Jenks
LRU culling turns every read into a kind of write to the cache: cache keys are moved to the first position in the OrderedDict when they are retrieved. The RWLock which permitted multiple readers while prioritizing a single writer is obsolete since all accesses are now writes.
2017-10-31Fixed #28760 -- Removed DummyCache's unnecessary get/set/delete_many().Adam Johnson
2017-10-30Refs #27318 -- Made DummyCache.set_many() return a list for consistency with ↵Adam Johnson
other backends.
2017-10-10Fixed #28601 -- Prevented cache.get_or_set() from caching None if default is ↵Daniel Tao
a callable that returns None.
2017-09-22Refs #26447 -- Removed the USE_ETAGS setting per deprecation timeline.Tim Graham
2017-09-22Refs #20892 -- Removed support for passing pylibmc behavior settings as ↵Tim Graham
top-level attributes of CACHES['OPTIONS']. Per deprecation timeline.
2017-09-06Fixed #27318 -- Made cache.set_many() return the list of failed keys.Olivier Tabone
2017-09-03Fixed #28500 -- Fixed crash in FileBasedCache._is_expired() if the cache ↵caleb logan
file is empty.
2017-06-16Refs #27787 -- Corrected or removed invalid call_command() options.Chandrakant Kumar
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-24Refs #27804 -- Used subTest() in several tests.Bruno Alla
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-25Refs #23919 -- Removed misc Python 2/3 references.Tim Graham
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-25Refs #23919 -- Replaced errno checking with PEP 3151 exceptions.Tim Graham
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Replaced io.open() with open().Aymeric Augustin
io.open() is an alias for open() on Python 3.
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-27Fixed #27327 -- Simplified time zone handling by requiring pytz.Tim Graham
2016-10-10Fixed #26447 -- Deprecated settings.USE_ETAGS in favor of ↵Denis Cornehl
ConditionalGetMiddleware.
2016-09-15Refs #5133 -- Isolated test_close() cache test.Tim Graham
2016-09-14Fixed #27211 -- Made UpdateCacheMiddleware include caching headers for "304 ↵Rinat Khabibiev
Not Modified" responses.
2016-09-09Normalized spelling of ETag.Tim Graham
2016-09-02Fixed #11331 -- Stopped closing pylibmc connections after each request.Ed Morley
libmemcached manages its own connections, so isn't affected by refs #5133.
2016-09-02Refs #5133 -- Tested memcached connection closing after each request.Ed Morley
2016-08-31Fixed #27152 -- Supported comma delimiter in memcached LOCATION string.Ed Morley
2016-08-31Added a test for multiple memcached servers in LOCATION.Ed Morley
2016-08-31Fixed #20892 -- Allowed configuring memcached client using OPTIONS.Ed Morley
Previously, the MemcachedCache backend ignored `OPTIONS` and PyLibMCCache used them to set pylibmc behaviors. Both backends now pass `OPTIONS` as keyword arguments to the client constructors.
2016-08-31Removed unused variable in test_memcached_uses_highest_pickle_versionEd Morley
2016-08-29Fixed #19914 -- Fixed test failures with pylibmc.Ed Morley
2016-08-29Fixed #27132 -- Allowed testing MemcachedCache and PyLibMCCache during the ↵Ed Morley
same test run.
2016-08-29Refs #19914 -- Split the test_invalid_keys cache test into two.Ed Morley
The first half of the test fails when using pylibmc (so will need to be skipped).