Commit Graph

318 Commits

Author SHA1 Message Date
Bertrand Bordage 099e988b3b Version 1.5.0. 2017-06-04 22:00:40 +02:00
Bertrand Bordage e750effa5a Allows specifying model lookups in API functions. 2017-06-04 19:45:39 +02:00
Bertrand Bordage 95d2918612 Fixes Python 2 tests. 2017-06-04 19:39:12 +02:00
Bertrand Bordage f82c48f391 Fixes Django 1.8 compatibility. 2017-06-04 19:27:08 +02:00
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 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