You might try; ssl_session_cache builtin:4000; which seems to work ok as its processed inside openssl only. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247795,247813#msg-247813