Membership types and registration modification module shutting down under high traffic and maybe a fix for it.

reed.richards - November 20, 2008 - 09:40
Project:Membership types and registration modification
Version:5.x-1.6
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

The module shuts down under high traffic on my site, and starts acting weird. I have shared hosting and thus litte memory etc. I chased this problem down to module's use of session variables for people that are not logged in, which somehow is messed up during hig load due to Drupals cache function. That's my hunch. Anyways I rewrote the module a bit ugly but it doesn't use session variables for the registration process, it also moved the role choosing to the password and username form it is thus only one step for registering.

Now my fix is ugly but I think it works, and you might wanna improve on it.

AttachmentSize
nf_registration_mod.zip28.57 KB
 
 

Drupal is a registered trademark of Dries Buytaert.