summaryrefslogtreecommitdiff
path: root/tests/cache
AgeCommit message (Collapse)Author
2014-07-24[1.7.x] Avoided transactional DDL on castrated databases.Aymeric Augustin
Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308 and #23089. Backport of 0757e0f30d from master
2014-07-24[1.7.x] Fixed #23089 -- Fixed transaction handling in two management commands.Aymeric Augustin
Previously, when createcachetable and flush operated on non-default databases, they weren't atomic. Backport of 753a22a635 from master
2014-06-23[1.7.x] Ensured cache tests do not leak temp dirsClaude Paroz
Refs #17215. Backport of 1d9596025e from master.
2014-06-16[1.7.x] Fixed #22845 -- Correctly handled memcached default timeout value.Vincent-Vega
Backport of 4529af9ecf from master
2014-05-09[1.7.x] Fixed #22606 -- Locmemcache has_key() failed for infinite cache expiryMalcolm Box
Refactored cache expiry logic for Locmemcache to make consistent across all places where accessed, and correctly handle None as expiry time. Backport of 66880e4cd from master.
2014-04-23[1.7.x] Fixed #22495 -- Locmem cache.add() failed with infinite timeoutsMalcolm Box
cache.add() incorrectly succeeded when there was an existing key with an infinite (None) timeout. Backport of af5f688392 from master.
2014-04-21[1.7.x] Prevented leaking the CSRF token through caching.Aymeric Augustin
This is a security fix. Disclosure will follow shortly. Backport of c083e3815aec23b99833da710eea574e6f2e8566 from master
2014-04-21[1.7.x] Appeased flake8 2.1.0.Aymeric Augustin
Backport of 428c0bbe1bcd303560d7e96d7d2721ff3fdc0e3f from master
2014-03-09Fixed #22237 -- Removed some warnings in the test suiteClaude Paroz
Thanks Aymeric Augustin for the report.
2014-03-05Fixed incorrect docstring in cache tests (take two)Baptiste Mispelon
3e25c8ac69ae336102d91f1d2591ab03f3a91e33 was an incomplete merge of the pull request. Thanks to @ramast for catching this.
2014-03-04Fixed incorrect docstring in cache testsramast
2014-03-04Fixed #22085 -- Added a feature for setting non-expiring keys as the default.zedr
This feature allows the default `TIMEOUT` Cache argument to be set to `None`, so that cache instances can set a non-expiring key as the default, instead of using the default value of 5 minutes. Previously, this was possible only by passing `None` as an argument to the set() method of objects of type `BaseCache` (and subtypes).
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-08Added tests for LocalMemCache deadlocks. refs #20613 and refs #18541.Tim Graham
Thanks Zach Smith for the patch.
2014-02-04Fixed #21911 -- Made admin views redirect to login when neededClaude Paroz
Historically, the Django admin used to pass through the request from an unauthorized access to the login view directly. Now we are using a proper redirection, which is also preventing inadvertantly changing data when POSTing login data to an admin view when user is already authorized. Thanks Marc Tamlyn and Tim Graham for the reviews.
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2013-12-28Fixed #20346 -- Made cache middleware vary on the full URL.ijl
Previously, only the URL path was included in the cache key. Thanks jamey for the suggestion.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-24flake8 fixesAlex Gaynor
2013-11-24Properly closed cache connections at the end of the request.Florian Apolloner
This only affects the new cache api and not the deprecated get_cache. Refs #21012
2013-11-24Fixed flake8 error (5 space identation!!!)Alex Gaynor
2013-11-24Don't fail if there is no memcached backend active.Florian Apolloner
2013-11-24Fixed regression from ffc37e2343a93cf6d44247e20cd263b41f931716.Florian Apolloner
This (hopefully) ensures that the cache are created the same way as before the offending commit.
2013-11-24Randomized KEY_PREFIX in caches test to prevent failures during parallel ↵Florian Apolloner
testruns.
2013-11-23Don't fail if cPickle doesn't exist.Florian Apolloner
Today is not my day :(
2013-11-23Follow up to e112654fc81ddb3fbffbb8382b004d69367a85feFlorian Apolloner
Actually comitted the code now :þ
2013-11-23Fixed #21200 -- Consistantly raise errors across all cache backends.Florian Apolloner
Thanks to tchaumeny for the patch.
2013-11-23A handful of flake8 fixesAlex Gaynor
2013-11-23Allowed running the test suite without memcached (!)Aymeric Augustin
2013-11-23Fixed #21012 -- New API to access cache backends.Curtis Maloney
Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
2013-11-22Fixed some flake8 issuesAlex Gaynor
2013-11-21Fixed #21476 -- Cache tests make an incorrect use of `HttpRequest`Unai Zalakain
Using `django.test.client.RequestFactory` solves the problem and cleans up all the `get_request` mess.
2013-11-07Fixed a couple flake8 warnings.Tim Graham
2013-11-07Fixed #20536 -- rewrite of the file based cache backendJaap Roes
* Safer for use in multiprocess environments * Better random culling * Cache files use less disk space * Safer delete behavior Also fixed #15806, fixed #15825.
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-23Fixed E225 pep8 warnings.Tim Graham
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-14Fixed #15888 -- Made tablename argument of createcachetable optionalClaude Paroz
Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-09-19Fixed #21125 -- Removed support for cache URI syntaxCurtis Maloney