Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many queries #443

Closed
mavenium opened this issue Mar 2, 2021 · 2 comments
Closed

Too many queries #443

mavenium opened this issue Mar 2, 2021 · 2 comments

Comments

@mavenium
Copy link
Contributor

mavenium commented Mar 2, 2021

Describe the problem

I use the database backend mode with Memcached. But the number of requests to display the settings is too many.

Steps to reproduce

  1. context_processors Setting:
    TEMPLATES = [ { 'OPTIONS': { 'context_processors': [ 'constance.context_processors.config', ], }, }, ]

  2. CONSTANCE Settings
    `CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'

CONSTANCE_IGNORE_ADMIN_VERSION_CHECK = True

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
CONSTANCE_DATABASE_CACHE_BACKEND = 'default'`

System configuration

  • Django version: 3.1
  • Python version: 3.8
  • Django-Constance version: 2.8.0
@Mogost
Copy link
Member

Mogost commented Sep 10, 2024

Is this problem still relevant today?

@camilonova
Copy link
Member

That doesn't seem to be the case. I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants