| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
the highest pickling protocol.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
DBCacheTests.test_clear_commits_transaction test.
Was added in 44164c5c308da32a804dfb03ce0bffde2a6b4c56 but the
transaction.commit_unless_managed() line was removed in
ba5138b1c0253fcf390b7509ad7b954117b3be88; thus the test does nothing
but check that clear() runs.
|
| |
|
|
|
|
| |
createcachetable command.
|
|
|
|
| |
BaseCache backend.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
allow_migrate().
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.
This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.
Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.
Refs 22583.
|
| |
|
| |
|
|
|
|
| |
timeline; refs #21012.
|
|
|
|
| |
responses.
|
|
|
|
|
| |
This reverts a change made in 40c60efecc0fc73f0b2320b44d684586b52ee799
which was incorrect and caused CacheKeyWarnings.
|
| |
|
|
|
|
| |
django.template.
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
| |
Thanks Diego Guimarãesi and Florian Apolloner.
|
|
|
|
| |
override_settings(DATABASE_ROUTERS); refs #23933.
|
|
|
|
|
|
|
|
|
|
| |
a failure to set.
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.
|
|
|
|
| |
level when used as a TestCase decorator.
|
|
|
|
| |
Django test suite.
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
3282.
Thanks Collin Anderson for the review.
|
|
|
|
|
|
|
|
|
| |
dictionary-type setting"
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.
|
| |
|
|
|
|
|
|
|
|
| |
dictionary-type setting
This change is needed for upcoming changes where settings might be
grouped in a parent dictionary.
Thanks Tim Graham for the review.
|
|
|
|
| |
Refs #17215.
|
|
|
|
| |
timeout value.
|
| |
|
|
|
|
|
|
|
| |
infinite cache expiry
Refactored cache expiry logic for Locmemcache to make consistent across
all places where accessed, and correctly handle None as expiry time.
|
|
|
|
|
|
|
| |
timeouts
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.
|
|
|
|
|
|
| |
deprecation timeline.
refs #15201.
|
|
|
|
| |
Thanks Aymeric Augustin for the report.
|
|
|
|
|
|
|
| |
3e25c8ac69ae336102d91f1d2591ab03f3a91e33 was an incomplete
merge of the pull request.
Thanks to @ramast for catching this.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
keys as the default.
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.
|
|
|
|
|
|
| |
refs #18541.
Thanks Zach Smith for the patch.
|
|
|
|
|
|
|
|
|
|
|
| |
needed
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.
|
| |
|