Add support for database caching

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: django
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Database caching isn't implemented.

      Example crash when running Wagtail test suite :

      AttributeError: 'NoneType' object has no attribute 'execute'

      django-mongodb doesn't use cursors and isn't able to execute SQL, so a custom cache backend is needed.

      Workaround is to disable use of database caching in the tests: https://github.com/aclark4life/django-mongodb-cli/blob/36515d54ab94ca82085a1c898d1b478c1c423e10/test_settings/settings_wagtail.py#L182-L190

       

            Assignee:
            Unassigned
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: