DjangoBB

Django based forum engine

  • You are not logged in.

#1 Aug. 24, 2012 21:28:21

jedie
From: germany
Registered: 2012-07-12
Posts: 160
Reputation: +  1  -
Profile   Send e-mail  

caching...

I have implement and refactor two things in django-tools about caching:

smooth cache backends and per-site cache middleware

Maybe it's interesting for DjangoBB?

per-site cache middleware is similar to django UpdateCacheMiddleware and FetchFromCacheMiddleware, but has some enhancements, e.g.::
* Skip cookies and attributes like response.csrf_processing_done
* ignores:

response['Vary']

So, it's more effective for anonymous caching: The django middleware would vary on cookie. So it's de-facto a cache per anonymous user…

smooth cache backends are the same as django cache backends, except that cache.clear() clears the cache smoothly depend on the current system load. (think i will change cache.clear() to somethign else, e.g: cache.smooth_update() )

more info in README here:
https://github.com/jedie/django-tools/tree/master/django_tools/cache




Some of my Projects:
* Migrate phpBB to DjangoBB with django-phpBB3
* DjangoBB github repro and information about my changes
* PyLucid CMS written in Django: http://www.pylucid.org/

Offline

#2 Aug. 30, 2012 14:59:01

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

caching...

interesting, but i don't think than functionality like this will be in forum core

Offline

#3 Aug. 31, 2012 15:39:28

jedie
From: germany
Registered: 2012-07-12
Posts: 160
Reputation: +  1  -
Profile   Send e-mail  

caching...

There not really need a change in the core! It's only need to change settings and add signal handler to call cache.smooth_update() after something was edit/created…

So everything can live in the project and not in the app…




Some of my Projects:
* Migrate phpBB to DjangoBB with django-phpBB3
* DjangoBB github repro and information about my changes
* PyLucid CMS written in Django: http://www.pylucid.org/

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version