Changes between Initial Version and Version 1 of Ticket #15337


Ignore:
Timestamp:
Feb 18, 2011, 12:55:38 AM (14 years ago)
Author:
Russell Keith-Magee
Comment:

Can't reproduce -- I dropped a custom cache class defined as you describe, and don't the problem you describe. Looking at the code, I can't even work out what set of conditions would allow this to be reproduced -- I don't see any circular dependency. memcached doesn't import anything from the django.core.cache.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15337

    • Property Resolutionworksforme
    • Property Status newclosed
  • Ticket #15337 – Description

    initial v1  
    99
    1010
    11 and set backend to "mycache.MyCache" in settings.py, then mycache.py and django.core.cache.__init__.py import each other.
    12 Turn django.core.cache.__init__.py::cache object to be a SimpleLazyObject would solve this problem.
     11and set backend to "mycache.MyCache" in settings.py, then mycache.py and django.core.cache.!__init!__.py import each other.
     12Turn django.core.cache.!__init!__.py::cache object to be a SimpleLazyObject would solve this problem.
Back to Top