| Age | Commit message (Collapse) | Author |
|
|
|
This reverts a change made in 40c60efecc0fc73f0b2320b44d684586b52ee799
which was incorrect and caused CacheKeyWarnings.
|
|
|
|
|
|
comprehension
|
|
Thanks Diego Guimarãesi and Florian Apolloner.
|
|
#23933.
|
|
Default Memcached configuration allows for a maximum object of 1MB and
will fail to set the key if it is too large. The key will be deleted from
memcached if it fails to be set. This is needed to avoid an issue with
cache_db session backend using the old value stored in memcached, instead
of the newer value stored in the database.
|
|
TestCase decorator.
|
|
|
|
Refs #23663.
|
|
`cache.tests.TestEtagWithAdmin` loaded views from the `admin_views` test
package. This is problematic because when the `cache` test package is
run in isolation, `admin_views` isn't in INSTALLED_APPS, and therefore
loading its models isn't allowed since the app loading refactor.
|
|
Thanks Collin Anderson for the review.
|
|
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c.
Discussions have led to think that this functionality does not
bring significant benefits to justify the added complexity.
Read also discussions on ticket #22734.
|
|
|
|
This change is needed for upcoming changes where settings might be
grouped in a parent dictionary.
Thanks Tim Graham for the review.
|
|
Refs #17215.
|
|
|
|
|
|
Refactored cache expiry logic for Locmemcache to make consistent across
all places where accessed, and correctly handle None as expiry time.
|
|
cache.add() incorrectly succeeded when there was an existing key
with an infinite (None) timeout.
|
|
This is a security fix. Disclosure will follow shortly.
|
|
|
|
|
|
|
|
Fixed a test failure that appeared after 753a22a6, although the bug
existed before that commit.
Refs #22308.
|
|
Previously, when createcachetable and flush operated on non-default
databases, they weren't atomic.
|
|
refs #15201.
|
|
Thanks Aymeric Augustin for the report.
|
|
3e25c8ac69ae336102d91f1d2591ab03f3a91e33 was an incomplete
merge of the pull request.
Thanks to @ramast for catching this.
|
|
|
|
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).
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
Thanks Zach Smith for the patch.
|
|
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.
|
|
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()'.
|
|
Previously, only the URL path was included in the cache key.
Thanks jamey for the suggestion.
|
|
|
|
|
|
This only affects the new cache api and not the deprecated get_cache.
Refs #21012
|
|
|
|
|
|
This (hopefully) ensures that the cache are created the same way as before
the offending commit.
|
|
testruns.
|
|
Today is not my day :(
|
|
Actually comitted the code now :þ
|
|
Thanks to tchaumeny for the patch.
|
|
|
|
|
|
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.
|