Commit graph

134 commits

Author SHA1 Message Date
Bertrand Bordage
e276d3961c Adds a test to find if the cache is invalidated after flush and loaddata commands. 2014-10-21 23:10:58 +02:00
Bertrand Bordage
e9b6b40117 Partially reverts 5708345. 2014-10-21 21:47:50 +02:00
Bertrand Bordage
b2c9ba6346 Only add South in Django < 1.7. 2014-10-21 20:42:40 +02:00
Bertrand Bordage
57083451f1 Uses signals to invalidate cache when a DB schema is altered. 2014-10-21 20:29:02 +02:00
Bertrand Bordage
1f1697891b Adds more multi-database tests. 2014-10-21 19:51:03 +02:00
Bertrand Bordage
aa1d367c89 Changes a skip condition. 2014-10-21 18:22:24 +02:00
Bertrand Bordage
b872e22cdc Small Python optimizations. 2014-10-21 13:56:58 +02:00
Bertrand Bordage
11070fe3c6 Removes a useless cache.delete_many call thanks to a clarification. 2014-10-21 13:43:08 +02:00
Bertrand Bordage
dfdb845c55 Simplification. 2014-10-21 13:40:08 +02:00
Bertrand Bordage
795ba3a81c Tests speedup. 2014-10-21 13:38:07 +02:00
Bertrand Bordage
19f306054d Adds multi-database support. 2014-10-20 23:43:10 +02:00
Bertrand Bordage
65a8008073 Adds a basic multi-database test. 2014-10-20 22:18:00 +02:00
Bertrand Bordage
14bd24f68a Tests again multiple databases at the same time. 2014-10-20 21:04:16 +02:00
Bertrand Bordage
6c96f17762 Adds some flat design badges. 2014-10-20 19:35:21 +02:00
Bertrand Bordage
a4f766fd14 Adds tests for select_for_update. 2014-10-20 17:25:20 +02:00
Bertrand Bordage
7877a13e82 Adds 2 tests. 2014-10-20 16:44:22 +02:00
Bertrand Bordage
0df8b7aeb9 Fixes tests on Django 1.6. 2014-10-20 16:15:27 +02:00
Bertrand Bordage
0da4880442 Separates tests in several files. 2014-10-20 15:40:37 +02:00
Bertrand Bordage
9ad5582f09 Takes SQLite BEGINs into account in TransactionTestCases. 2014-10-19 22:51:59 +02:00
Bertrand Bordage
cdd04b27a2 Switches all tests to TransactionTestCase. 2014-10-19 22:25:40 +02:00
Bertrand Bordage
24344877ce Typo in README. 2014-10-19 22:05:14 +02:00
Bertrand Bordage
9cad105d01 Detail in README. 2014-10-19 21:56:10 +02:00
Bertrand Bordage
cc79633137 Updates version number. 2014-10-19 21:55:44 +02:00
Bertrand Bordage
cf35965466 Version 0.7.0. 2014-10-19 21:52:09 +02:00
Bertrand Bordage
941ef625fc Updates README and warns about locmem limits. 2014-10-19 21:39:18 +02:00
Bertrand Bordage
09232d715c Removes an unused import. 2014-10-19 21:17:07 +02:00
Bertrand Bordage
2b02eec743 Simplification. 2014-10-19 20:59:00 +02:00
Bertrand Bordage
f6b85adb98 Invalidates the parent cache before updating it to avoid the committed atomic cache keys for table queries to override those of the parent cache. 2014-10-19 20:40:24 +02:00
Bertrand Bordage
441506f3f0 Rewrites caching in transactions for a better multi-threading/processing handling. 2014-10-19 20:15:57 +02:00
Bertrand Bordage
bfca337e0b Adds another thread-safety test. 2014-10-19 17:34:02 +02:00
Bertrand Bordage
611e4c980a Adds 4 thread-safety tests. 2014-10-15 17:33:45 +02:00
Bertrand Bordage
6000d3be55 Fixes two issues in ThreadSafetyTestCase. 2014-10-15 16:32:01 +02:00
Bertrand Bordage
3dec971422 Invalidates queries cached within a concurrent connection of a transaction. 2014-10-14 02:01:32 +02:00
Bertrand Bordage
f76d3adf08 Adds a basic thread-safety test case. 2014-10-14 01:48:42 +02:00
Bertrand Bordage
0f6e7d95e5 Tries to fix cache flushes in tests. 2014-10-14 01:40:08 +02:00
Bertrand Bordage
511ab26e84 Also invalidates on fixture setup. 2014-10-14 01:27:08 +02:00
Bertrand Bordage
2faca40f0a Adds TransactionTestCase support by clearing cachalot caches at each fixture teardown instead of each DB creation/destruction. 2014-10-14 01:14:43 +02:00
Bertrand Bordage
f638b67a83 [Optimization] Avoids useless multiple cache hits during transactions. 2014-10-13 21:07:23 +02:00
Bertrand Bordage
be4e723b3f Commits an atomic cache after a SQL commit (not before). 2014-10-13 20:57:36 +02:00
Bertrand Bordage
ab6152dfb1 Use None as a default value (considering we now serialize results). 2014-10-07 16:08:23 +02:00
Bertrand Bordage
194297ce8a Updates version number. 2014-10-07 16:06:14 +02:00
Bertrand Bordage
71eb00ac73 Version 0.6.0. 2014-10-06 15:30:42 +02:00
Bertrand Bordage
a4d20241e1 Revert "[Travis CI] Removes database creation."
This reverts commit 5d8c5d5785.
2014-10-06 15:19:29 +02:00
Bertrand Bordage
5d8c5d5785 [Travis CI] Removes database creation. 2014-10-06 15:06:20 +02:00
Bertrand Bordage
13e75f7322 Fixes a test for MySQL. 2014-10-06 14:58:21 +02:00
Bertrand Bordage
8091fedbc2 Fixes the failing test. 2014-10-06 14:49:53 +02:00
Bertrand Bordage
b355fee144 Mark a test as an expected failure instead of skipping it. 2014-10-06 14:19:02 +02:00
Bertrand Bordage
f899792bfb Tests if None is a cached result. 2014-10-06 14:14:28 +02:00
Bertrand Bordage
8698673190 [Travis CI] Updates the exclude matrix. 2014-10-06 14:08:04 +02:00
Bertrand Bordage
a37c47ab0e [Travis CI] Adds memcached to the services. 2014-10-06 13:52:21 +02:00