Comments (8)
This seems related to https://code.djangoproject.com/ticket/15894
It happens to us too on occasion, although we had thought it was related to our database routing set up.
from django-multisite.
Same here. Looks like a race condition in _get_site_by_id
. We're not quite sure, how it happens. I suspect the cache may get invalidated/expired between the condition and the return statement.
from django-multisite.
Yes it is a race condition, when you run in loop Site.objects.get_current() and invalidate cache in between, it throws this
from django-multisite.
For us it occurs way too often (several times a day) and we don't invalidate cache manually. It is also too often for records to expire.
from django-multisite.
👍
Same issue here. Race-condition, in fact, seems to be the villain. I just optimized a project by creating a multiprocess setup and the amount of KeyError
s increased drastically.
Thanks for the good job (and for this fix) @rebkwok !
from django-multisite.
Will there be a new release with this bug fixed?
from django-multisite.
@ziima already done I guess (1.6.0 on PyPI)
from django-multisite.
Oh, I got confused by the fact, that tag is not on the bump commit. Thanks for clearing that up.
from django-multisite.
Related Issues (20)
- Incorrect cache prefix documentation HOT 2
- Remove template.loaders.cached.py HOT 1
- Doesn't work with django_debug_toolbar HOT 1
- django-multisite how to set the correct database for the site based on subdomain HOT 1
- remove deprecated PathAssistedCurrentSiteManager HOT 1
- Support django 2.0
- Template dir for local development HOT 7
- Resolve normalized domain names
- Advantages of django-multisite HOT 1
- AliasInline should override `get_queryset`, not `queryset`
- New PyPi release HOT 2
- What current version of Django does this support? HOT 2
- suggest running `black` formatter on code before push HOT 1
- Middleware compatibility with Django 2 HOT 1
- Request for an example
- Crash on tldextract==3.0.0
- Django 3.2 breaks django-multisite: The SITE_ID setting must be an integer HOT 7
- Template loader alters path, can't find template again
- About Django 3.2 support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-multisite.