Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/cache
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25668 -- Misc spelling errorsVille Skyttä2015-11-031-1/+1
|
* Fixed #25501 -- Made the file-based cache backend use ↵Andrew Artajos2015-10-201-2/+2
| | | | the highest pickling protocol.
* Fixed #25034 -- Converted caches ImproperlyConfigured ↵Tom Christie2015-09-181-4/+0
| | | | error to a system check.
* Fixed typo in django/core/cache/backends/base.py docstring.Matthew Crowson2015-09-161-1/+1
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Updated Memcached get_backend_timeout() comment.Karol Duleba2015-07-061-4/+5
|
* Sorted imports in __init__.py files.Tim Graham2015-06-271-2/+2
|
* Refactored datetime handling in the database cache backend.Aymeric Augustin2015-05-171-43/+43
| | | | Took advantage of the new database adapters and converters.
* Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin2015-05-171-3/+3
| | | | | This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
* Removed global timezone-aware datetime converters.Aymeric Augustin2015-05-171-0/+4
| | | | Refs #23820.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-132-2/+2
|
* Fixed #12982 -- Added a get_or_set() method to the ↵Berker Peksag2015-03-141-0/+21
| | | | BaseCache backend.
* Fixed #24351, #24346 -- Changed the signature of ↵Loic Bistuer2015-02-201-0/+1
| | | | | | | | | | | | | | | | 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-067-16/+20
|
* Removed BaseMemcachedCacheMethods._get_memcache_timeout ↵Tim Graham2015-01-181-8/+1
| | | | | | backwards compatibility shim. Per deprecation timeline; refs #21147.
* Removed django.core.cache.get_cache() per deprecation ↵Tim Graham2015-01-171-30/+1
| | | | timeline; refs #21012.
* Fixed #16358 - Made memcache backend delete old value on ↵Michael Manfre2014-11-131-1/+3
| | | | | | | | | | 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.
* Fixed #23642 -- Made LocMemCache.incr() thread-safe as ↵Thomas Chaumeny2014-10-121-9/+16
| | | | documented
* Fixed #23625 -- Removed CacheClass shimJaap Roes2014-10-104-20/+0
|
* Fixed #22845 -- Correctly handled memcached default ↵Vincent-Vega2014-06-161-1/+1
| | | | timeout value.
* Fixed #22606 -- Locmemcache has_key() failed for ↵Malcolm Box2014-05-091-8/+9
| | | | | | | infinite cache expiry Refactored cache expiry logic for Locmemcache to make consistent across all places where accessed, and correctly handle None as expiry time.
* Fixed #22495 -- Locmem cache.add() failed with infinite ↵Malcolm Box2014-04-231-2/+2
| | | | | | | timeouts cache.add() incorrectly succeeded when there was an existing key with an infinite (None) timeout.
* Fixed #21188 -- Introduced subclasses for ↵Claude Paroz2014-03-082-4/+4
| | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Fixed #22085 -- Added a feature for setting non-expiring ↵zedr2014-03-041-4/+5
| | | | | | | | | | | 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).
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-082-7/+7
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Ensure cursors are closed when no longer needed.Michael Manfre2014-02-021-64/+65
| | | | | | 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()'.
* flake8 fixesAlex Gaynor2013-11-251-0/+1
|
* Properly closed cache connections at the end of the request.Florian Apolloner2013-11-241-10/+22
| | | | | | This only affects the new cache api and not the deprecated get_cache. Refs #21012
* Follow up to e112654fc81ddb3fbffbb8382b004d69367a85feFlorian Apolloner2013-11-231-18/+7
| | | | Actually comitted the code now :þ
* A handful of flake8 fixesAlex Gaynor2013-11-231-0/+1
|
* Fixed #21012 -- New API to access cache backends.Curtis Maloney2013-11-232-20/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed a couple flake8 warnings.Tim Graham2013-11-081-1/+0
|
* Fixed #20536 -- rewrite of the file based cache backendJaap Roes2013-11-071-113/+113
| | | | | | | | | * Safer for use in multiprocess environments * Better random culling * Cache files use less disk space * Safer delete behavior Also fixed #15806, fixed #15825.
* Fixed all E226 violationsAlex Gaynor2013-11-031-2/+2
|
* Fixed all E261 warningscoagulant2013-11-021-1/+1
|
* More attacking E302 violatorsAlex Gaynor2013-11-024-0/+8
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-022-5/+2
|
* Start attacking E231 violationsAlex Gaynor2013-10-241-1/+1
|
* Fixed #21147 -- Avoided time.time precision issue with ↵Michael Manfre2013-10-015-17/+31
| | | | | | | | cache backends. The precision of time.time() is OS specific and it is possible for the resolution to be low enough to allow reading a cache key previously set with a timeout of 0.
* Fixed #21146 - DatabaseCache converts expires to python ↵Michael Manfre2013-09-261-3/+18
| | | | | | | | | | value DatabaseCache uses raw cursors to bypass the ORM. This prevents it from being used by database backends that require special handling of datetime values. There is no easy way to test this, so no tests added.
* Fixed #21125 -- Removed support for cache URI syntaxCurtis Maloney2013-09-191-74/+20
|
* Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor2013-09-101-5/+5
| | | | Thanks joseph at vertstudios.com for the suggestion.
* Fixed a number of flake8 errors -- particularly around ↵Alex Gaynor2013-09-071-1/+1
| | | | unused imports and local variables
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-4/+1
|
* Fixed #20989 -- Removed useless explicit list ↵Simon Charette2013-08-301-1/+1
| | | | comprehensions.
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Deprecated django.utils.importlibClaude Paroz2013-07-291-1/+1
| | | | This was a shim for pre-Python 2.7 support.
* Fixed #20722 -- Fixed MemcachedCache backend get_many on ↵Tim Graham2013-07-091-1/+1
| | | | Python 3.
* A few cleanups to capture the minimum amount of code in ↵Alex Gaynor2013-07-081-10/+14
| | | | try/except blocks.
* Fixed 20613 - moved pickle loads/dumps outside with ↵ersran92013-07-051-22/+25
| | | | | | | self._lock.reader()/writer() blocks Additionaly added pickled=None initially and check for none before returning in get