| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-09-01 | Fixed CVE-2020-24584 -- Fixed permission escalation in intermediate-level ↵ | Mariusz Felisiak | |
| directories of the file system cache on Python 3.7+. | |||
| 2020-08-28 | Added tests for cache middlewares constructors. | Kevin Michel | |
| 2020-08-24 | Fixed #31907 -- Fixed missing validate_key() calls in cache backends. | Nick Pope | |
| 2020-08-24 | Refs #31907 -- Added cache key validation tests for cache operations. | Nick Pope | |
| 2020-06-22 | Refs #5691 -- Made cache keys independent of USE_L10N. | Claude Paroz | |
| This mostly reverts af1893c4ff8fdbf227a43a559d90bb1c1238b01a. | |||
| 2020-06-22 | Fixed #31728 -- Fixed cache culling when no key is found for deletion. | Guillermo Bonvehí | |
| DatabaseCache._cull implementation could fail if no key was found to perform a deletion in the table. This prevented the new cache key/value from being correctly added. | |||
| 2020-06-05 | Fixed #31654 -- Fixed cache key validation messages. | Mariusz Felisiak | |
| 2020-06-03 | Preferred usage of among/while to amongst/whilst. | David Smith | |
| 2020-06-03 | Refs CVE-2020-13254 -- Fixed cache.tests when KEY_PREFIX is defined. | Mariusz Felisiak | |
| Follow up to 2c82414914ae6476be5a166be9ff49c24d0d9069. | |||
| 2020-06-03 | Fixed CVE-2020-13254 -- Enforced cache key validation in memcached backends. | Dan Palmer | |
| 2020-03-19 | Made BaseCacheTests skip culling tests if culling is not supported. | Jon Dufresne | |
| 2020-02-18 | Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵ | Claude Paroz | |
| classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-02-13 | Removed unused cache.tests.CacheUtils._set_cache(). | Claude Paroz | |
| Unused since its introduction in 71a03e01aa19cbde08e915d156abf39b67d904ef. | |||
| 2020-01-30 | Replaced assertWarns() with SimpleTestCase.assertWarnsMessage() in tests. | Hasan Ramezani | |
| 2020-01-16 | Fixed #30765 -- Made cache_page decorator take precedence over max-age ↵ | Flavio Curella | |
| Cache-Control directive. | |||
| 2019-12-31 | Improved tests assertions in cache tests. | Jon Dufresne | |
| Added assertions to compare results of .add(), .delete(), .touch(), .incr(), .decr(), and .get_or_set() methods. Made tests use assertIs() rather than assertTrue/False(). | |||
| 2019-12-11 | Fixed typo in tests/cache/tests.py docstring. | Jon Dufresne | |
| 2019-11-14 | Fixed #30759 -- Made cache.delete() return whether it succeeded. | daniel a rios | |
| Thanks Simon Charette for the review. | |||
| 2019-11-06 | Refs #29983 -- Added tests for FileBasedCache pathlib support. | Jon Dufresne | |
| 2019-10-29 | Used more specific unittest assertions in tests. | Nick Pope | |
| * assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False. | |||
| 2019-10-10 | Fixed #23755 -- Added support for multiple field names in the no-cache ↵ | Flavio Curella | |
| Cache-Control directive to patch_cache_control(). https://tools.ietf.org/html/rfc7234#section-5.2.2.2 | |||
| 2019-10-10 | Refs #23755 -- Added tests for patch_cache_control() with no-cache ↵ | Flavio Curella | |
| Cache-Control directive. | |||
| 2019-09-18 | Fixed #30772 -- Optimized make_template_fragment_key(). | Daniel Fairhead | |
| Removed usage of urllib.quote(), unnecessary since cbbe60c7fc39fa8ff75554bd90104eaad6924bb1. Used hasher's .update() on key fragments. | |||
| 2019-08-16 | Fixed #30701 -- Updated patch_vary_headers() to handle an asterisk according ↵ | Adnan Umer | |
| to RFC 7231. | |||
| 2019-02-14 | Fixed #30181 -- Made cache.get() with default work correctly on PyLibMCCache ↵ | Jakub Szafrański | |
| if None is cached. | |||
| 2019-01-28 | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | |
| Used more specific errors (e.g. FileExistsError) as appropriate. | |||
| 2019-01-26 | Added missing assert in ↵ | Jon Dufresne | |
| FileBasedCacheTests.test_creates_cache_dir_if_nonexistent(). | |||
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-11-27 | Made reused RequestFactory instances class attributes. | Simon Charette | |
| 2018-11-27 | Switched TestCase to SimpleTestCase where possible in Django's tests. | Tim Graham | |
| 2018-08-17 | Fixed #29626, #29584 -- Added optimized versions of get_many() and ↵ | oliver | |
| delete_many() for the db cache backend. | |||
| 2018-08-16 | Optimized some cache tests with set_many(). | oliver | |
| 2018-07-09 | Fixed #20584 -- Fixed memcached's get_many() with single-use iterators. | Christian Barcenas | |
| Thanks Guyon Morée for the report. | |||
| 2018-05-09 | Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage(). | Morgan Aubert | |
| 2018-04-27 | Fixed #27480 -- Added cache.touch(). | Nicolas Noé | |
| 2018-03-03 | Refs #17476 -- Removed obsolete simplification of timezone names in cache ↵ | Sergey Fedoseev | |
| key generation. | |||
| 2018-02-06 | Fixed #28833 -- Prevented CacheMiddleware from caching responses with ↵ | shanghui | |
| "Cache-Control: private". | |||
| 2018-01-24 | Fixed #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-31 | Fixed #28760 -- Removed DummyCache's unnecessary get/set/delete_many(). | Adam Johnson | |
| 2017-10-30 | Refs #27318 -- Made DummyCache.set_many() return a list for consistency with ↵ | Adam Johnson | |
| other backends. | |||
| 2017-10-10 | Fixed #28601 -- Prevented cache.get_or_set() from caching None if default is ↵ | Daniel Tao | |
| a callable that returns None. | |||
| 2017-09-22 | Refs #26447 -- Removed the USE_ETAGS setting per deprecation timeline. | Tim Graham | |
| 2017-09-22 | Refs #20892 -- Removed support for passing pylibmc behavior settings as ↵ | Tim Graham | |
| top-level attributes of CACHES['OPTIONS']. Per deprecation timeline. | |||
| 2017-09-06 | Fixed #27318 -- Made cache.set_many() return the list of failed keys. | Olivier Tabone | |
| 2017-09-03 | Fixed #28500 -- Fixed crash in FileBasedCache._is_expired() if the cache ↵ | caleb logan | |
| file is empty. | |||
| 2017-06-16 | Refs #27787 -- Corrected or removed invalid call_command() options. | Chandrakant Kumar | |
| 2017-05-27 | Fixed #28249 -- Removed unnecessary dict.keys() calls. | Jon Dufresne | |
| iter(dict) is equivalent to iter(dict.keys()). | |||
| 2017-05-24 | Refs #27804 -- Used subTest() in several tests. | Bruno Alla | |
| 2017-03-17 | Replaced type-specific assertions with assertEqual(). | Tim Graham | |
| Python docs say, "it's usually not necessary to invoke these methods directly." | |||
| 2017-02-09 | Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode(). | Tim Graham | |
