wagtail-personalisation icon indicating copy to clipboard operation
wagtail-personalisation copied to clipboard

visitor_count session entry kills the server

Open tm-kn opened this issue 8 years ago • 0 comments

I was using Django default configuration for session and database, i.e. SQLite and storing sessions in database. visitor_count session entry would cause the default Django development server to crash due to high memory use.

Adding the following piece of code in a view solved the issue for me so that's why I assume it's the problem with that session entry.

if 'visit_count' in request.session:
            del request.session['visit_count']

The issue was more annoying on a server with small amount of RAM. I bet it must be the encoding process using too much memory.

tm-kn avatar Apr 20 '17 21:04 tm-kn