I am using cakephp framework for my application development and included the session component for session management in AppController
var $components = array('Session');
On each and every page reload CakeSession::_startSession
is calling which takes merely 7.5 secs (don't know why), and also FileEngine::read()
which takes 8.5 secs
Session statistics
Note: these standards are given by performance tool
How can i improve my page performance as the session taking too much time
Please help me to get resolve this issue
I'm using cakephp version 2.30
Thanks in advance
Update
we got the below link when I've googled about the issue
session_start seems to be very slow (but only sometimes)
in answer it has the below function to call
session_write_close(); // close write capability
And the same we have in CakePhp 2.6 version (in CakeSession::_startSession()
) where it's not in cake 2.3.0 (which I'm using currently)
So while comparing 2.3.0 & 2.6.0 versions, i found below code which isn't in version 2.3.0, Can i include this piece of code to resolve the Issue ?
self::init();
session_write_close();
self::_configureSession();
Please suggest me