Hi Luciano, > Memcache backend, using python-memcache silently ignores data bigger than 1Mb.
This is actually a limitation of memcached itself. > 1 - Compress cache data > https://code.djangoproject.com/ticket/16116 > Because body page has a good compression rate this feature helps a lot on > this issue. This ticket was closed as wontfix by Russell, and I agree with him. Django provides an API to implement pluggable caching backends, and that's the right solution here. > 2 - Pickle protocol > https://code.djangoproject.com/ticket/19810#no2 > Most of django backends uses higher pickle protocol, but it isn't true for > Memcache Bas Peschier and I fixed this ticket two weeks ago. > 3 - cache_db session "forgetting" big values > https://code.djangoproject.com/ticket/16358 This is a valid bug, but your pull request doesn't address it. It merely shifts the limit from "1MB of raw data" to "1MB of compressed data". The ticket has a patch that seems correct to me. It still needs tests. > It has changes in the docs and memcache backends, but there isn't any test, > because I couldn't figure out how to test them. :( Any advice on how to test > them? Tests for caching are in tests/cache/tests.py. See also the documentation: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ > Any feedback is welcome, I'm willing to make any necessary changes to get it > on the 1.6 train :) In terms of process, the first step is to make sure you're working on an idea that' s accepted. You may try to reverse the decision to close a ticket as wontfix if you have strong arguments: evidence that the reason was closing the ticket is inappropriate, that an use case was missed, that the context changed, etc. I would also recommend against fixing several tickets in one patch. The simpler a patch, the better its chances to be merged. If two tickets are really describing the same problem, one should be closed as a duplicate of the other. -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
