wagtail-personalisation
wagtail-personalisation copied to clipboard
visitor_count session entry kills the server
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.