Commit graph

509 commits

Author SHA1 Message Date
Bertrand Bordage
da4e21b515 Adds CACHALOT_DATABASES and removes dynamic setting support.
Dynamic setting support is removed because it’s not thread-safe.
2017-06-04 18:37:39 +02:00
Bertrand Bordage
b812f70895 Fixes an import on Django 1.8 2017-06-03 22:17:22 +02:00
Bertrand Bordage
84c53cd00d Invalidates queries on schema changes. 2017-06-03 22:02:23 +02:00
Bertrand Bordage
809ef63fd9 Tests schema changing queries. 2017-06-03 22:01:42 +02:00
Bertrand Bordage
8d334f9855 Python optimisations. 2017-06-03 19:53:01 +02:00
Bertrand Bordage
b5827cd936 Removes a useless check. 2017-06-03 18:47:06 +02:00
Bertrand Bordage
b634d18dc5 Correctly adds the long type. 2017-06-03 18:27:58 +02:00
Bertrand Bordage
2d5ad63fbd Adds the Python type long to the cachable param types. 2017-06-03 18:25:07 +02:00
Bertrand Bordage
412f82061e Prints again a debug line to understand why Travis CI is failing… -_- 2017-06-03 18:09:45 +02:00
Bertrand Bordage
4522106632 Supports RawSQL. 2017-06-03 17:59:21 +02:00
Bertrand Bordage
d0ee580cf3 Fixes multi-databases tests. 2017-06-03 17:48:59 +02:00
Bertrand Bordage
542a5b6097 Simplifies tests while increasing their robustness by explicitely checking detected table names. 2017-06-03 17:45:26 +02:00
Bertrand Bordage
27a7b318fc Tests invalidation of a nested raw subquery. 2017-06-03 15:26:53 +02:00
Bertrand Bordage
3b5dde8d30 Adds tests for RawSQL. 2017-06-03 15:18:20 +02:00
Bertrand Bordage
cb877355ac Adds bytearray to the list of cachable params. 2017-06-03 12:21:25 +02:00
Bertrand Bordage
799fbf28e0 Displays uncachable params to debug an issue only on Travis CI. 2017-06-03 12:07:53 +02:00
Bertrand Bordage
85ebf42353 Fixes Python 2. 2017-06-03 11:00:54 +02:00
Bertrand Bordage
f86a56d110 Fixes Django 1.11 compatibility. 2017-06-03 02:00:15 +02:00
Bertrand Bordage
1f04294eb5 Updates tests for Django 1.11. 2017-06-03 01:53:56 +02:00
Bertrand Bordage
e63301d763 Switches Travis back to PostgreSQL 9.4 since its docs doesn’t make sense. 2017-06-03 01:46:04 +02:00
Bertrand Bordage
92b4bde8e0 Switches Travis to PostgreSQL 9.5. 2017-06-03 01:42:54 +02:00
Bertrand Bordage
bbb2da1c5d Use Trusty in Travis. 2017-06-03 01:40:47 +02:00
Bertrand Bordage
018b6cc936 Fixes the Travis matrix by creating a script to generate it. 2017-06-03 01:36:27 +02:00
Bertrand Bordage
8aeb9f892b Makes Travis CI correctly run on different Python versions. 2017-06-03 01:25:08 +02:00
Bertrand Bordage
86d138c023 Removes Python 3.6 with Django 1.8 & 1.10. 2017-06-02 23:32:08 +02:00
Bertrand Bordage
fd5e256a5e Switches to PostgreSQL 9.6. 2017-06-02 23:09:45 +02:00
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
Bertrand Bordage
83cee881d2 Merge pull request #68 from eriktelepovsky/master
Fixes cache in CachalotPanel, Version 1.4.2
2017-06-02 23:01:41 +02:00
Bertrand Bordage
d7a36def44 Also drops Django 1.9 & Python 3.3. 2017-06-02 22:59:35 +02:00
Bertrand Bordage
e6b71a8213 Updates Sphinx requirements. 2017-06-02 22:59:29 +02:00
Bertrand Bordage
60c29e888f Typos in docs. 2017-06-02 22:57:31 +02:00
Bertrand Bordage
5b73e26bfe Merge pull request #76 from slurms/patch-1
Remove version since pylibmc issue has been fixed
2017-06-02 22:36:49 +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
Nick Sandford
7af968c4d9 Remove version since pylibmc issue has been fixed 2017-05-06 16:46:05 +01: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
eef82f8aaa Reproduces the conditions of issue #62. 2016-10-23 21:21:30 +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
c1f4be6b6f Adds missing requirements to tox.ini. 2016-10-23 20:11:50 +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
b6c1426168 Replaces Slack with gitter. 2016-09-29 19:40:32 +02:00
Bertrand Bordage
8caeab4742 Documentation update on CACHALOT_CACHE & some limits. 2016-09-29 19:12:01 +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