Bertrand Bordage
e9babc6e70
Merge pull request #80 from izimobil/master
...
Fixed django>=1.11 support.
2017-06-02 23:05:07 +02:00
Bertrand Bordage
c9ac4080d2
Partially reverts 2cf0d65
from #68 .
2017-06-02 23:03:45 +02:00
David Jean Louis
179d8f2e21
Fixed django>=1.11 support.
...
Since Django 1.11 the ``query`` argument of the SQLCompiler constructor has always a ``subquery`` property, in fact if the SQL query has no real sub query it is set to False.
As a result, the test done by Django-cachalot in the ``_get_tables`` function is no more accurate and cause a dramatic slow down on 1.11 django installs.
This fix should be backwards compatible with older versions of Django.
2017-06-02 17:29:11 +02:00
Erik Telepovský
2cf0d65994
Fixes cache in CachalotPanel, Version 1.4.2
2016-11-22 15:09:39 +01:00
Bertrand Bordage
a302f6b77a
Version 1.4.1.
2016-10-24 20:44:32 +02:00
Bertrand Bordage
2cea2cd891
Fixes issue #62 .
2016-10-23 21:22:22 +02:00
Bertrand Bordage
f7687b0ac9
Stops checking compatibility for caches other than CACHALOT_CACHE.
2016-10-23 21:10:10 +02:00
Bertrand Bordage
599b65c69d
Revert "Fixes a test broken by mysqlclient 1.3.8."
...
This reverts commit eb64d1ce2b
.
2016-10-23 21:04:42 +02:00
Bertrand Bordage
770368b338
Adds a test for the compatibility check.
2016-10-23 20:54:56 +02:00
Bertrand Bordage
3dd3082575
Creates a test for CachalotPanel.
2016-10-23 20:06:58 +02:00
Bertrand Bordage
5965319688
Version 1.4.0.
2016-09-29 20:28:47 +02:00
Bertrand Bordage
f6cfeb6226
Stops automatically invalidating other caches than `CACHALOT_CACHE`.
...
This had a negative impact on performance, and it was not working reliably.
It is clearer to invalidate only `CACHALOT_CACHE`, and to detail what
to do in the docs when we change `CACHALOT_CACHE`.
2016-09-29 19:11:21 +02:00
Bertrand Bordage
eb64d1ce2b
Fixes a test broken by mysqlclient 1.3.8.
2016-09-29 17:28:27 +02:00
Bertrand Bordage
2b2c662deb
Ensures we never send the signal during a transaction.
2016-09-29 13:55:40 +02:00
Bertrand Bordage
a42082e05c
Adds a test to check if the signal is not sent during transaction when using `invalidate`.
2016-09-29 13:49:42 +02:00
Bertrand Bordage
c5d5ee7907
Never caches `select_for_update` queries.
2016-09-29 11:57:38 +02:00
Bertrand Bordage
cffed48026
Version 1.3.0.
2016-09-13 21:59:10 +02:00
Bertrand Bordage
01163c1f29
Renames the Jinja2 extension for Python 2.7 compatibility.
2016-09-13 20:30:18 +02:00
Bertrand Bordage
04afa3f439
Adds a Jinja2 extension.
2016-09-13 20:15:30 +02:00
Bertrand Bordage
7e3137eac7
Revert "Runs the bytes query test for SQLite on Python 2."
...
This reverts commit 13d71120d1
.
2016-09-13 13:22:41 +02:00
Bertrand Bordage
13d71120d1
Runs the bytes query test for SQLite on Python 2.
2016-09-13 12:17:51 +02:00
Bertrand Bordage
246873b42f
Don’t invalidate uncachable queries.
2016-09-07 00:44:51 +02:00
Bertrand Bordage
522b5af899
Use CACHALOT_TIMEOUT in 3 remaining places.
2016-09-06 23:21:01 +02:00
Bertrand Bordage
571e6ec691
Adds CACHALOT_TIMEOUT.
2016-09-06 21:57:26 +02:00
Bertrand Bordage
762456415a
Fixes the test suite.
2016-09-06 20:01:48 +02:00
Bertrand Bordage
0373f5eb60
Fixes the bytes → str conversion.
2016-07-21 23:59:11 +02:00
Bertrand Bordage
42cf04ece5
Merge pull request #51 from Ayzse/master
...
Unicode encode fix
2016-07-21 23:49:38 +02:00
Bertrand Bordage
3562b31056
Tests executing raw bytes queries.
2016-07-21 23:47:35 +02:00
Bertrand Bordage
b9f84f8047
Change slightly the PostgreSQL backend compatibility code.
2016-07-21 12:26:40 +02:00
Bertrand Bordage
944ebb9b73
Removes old Django 1.7 code.
2016-07-21 12:19:31 +02:00
Bertrand Bordage
56e43380a6
Merge pull request #52 from ryanmrubin/django-1.9-db-engine-names
...
Add support for django.db.backends.postgresql engine
2016-07-21 11:58:33 +02:00
Bertrand Bordage
72596ac0b1
Modernizes the manage.py command.
2016-07-21 10:56:23 +02:00
Ryan Rubin
e282a97a89
Add support for django.db.backends.postgresql engine
...
This is the new name in 1.9, and the old django.db.backends.postgresql_psycopg2
is left in for backwards compatibility.
2016-07-20 12:28:17 -05:00
Ayzse
651a9bdf75
Unicode encode fix
2016-07-14 10:23:10 -05:00
Bertrand Bordage
8124bf3f86
Version 1.2.1.
2016-02-17 19:49:22 +01:00
Bertrand Bordage
e0841077e2
Revert "Simplifies the cache key hashing."
...
This reverts commit beac70251f
.
2016-02-17 19:38:41 +01:00
Bertrand Bordage
f61d4910a2
Version 1.2.0.
2016-01-13 16:00:41 +01:00
Bertrand Bordage
cfcd0f2805
Changes two documented types.
2016-01-12 11:42:57 +01:00
Bertrand Bordage
58fd71c925
Small Python optimisations & simplifications.
2016-01-11 22:57:42 +01:00
Bertrand Bordage
beac70251f
Simplifies the cache key hashing.
2016-01-11 22:06:16 +01:00
Bertrand Bordage
ef36e56fe7
Changes __version__ for PEP 396 compliance.
2016-01-11 21:05:39 +01:00
Bertrand Bordage
3e7a9a0808
Prevents queries with Now from being cached.
2015-12-28 05:51:38 +01:00
Bertrand Bordage
a49e7363c0
Reverts the extensions migration changes in tests.
2015-12-28 03:22:51 +01:00
Bertrand Bordage
3a97912f3d
Handles and tests JSONField.
2015-12-28 03:14:57 +01:00
Bertrand Bordage
2ffe564e3e
Fixes Django 1.7+1.8 compatibility.
2015-12-18 17:07:53 +01:00
Bertrand Bordage
746616b7b1
Fixes version number comparison.
2015-12-18 16:46:00 +01:00
Bertrand Bordage
885d68b008
Fixes Django 1.9 compatibility.
2015-12-18 15:56:28 +01:00
Bertrand Bordage
84baaa9d60
Merge pull request #32 from JockeTF/allow_dummy_cache_backend
...
Adds DummyCache to VALID_CACHE_BACKENDS.
2015-12-18 13:01:38 +01:00
Bertrand Bordage
be01f2d6fa
Simplification.
2015-12-18 12:37:34 +01:00
Yaroslav Admin
fcc77fa18e
Fixed deprecation warning
2015-11-27 16:03:27 +01:00