concurrent/very fast php session requests pile up when using php sessions -
i using php sessions , utilize session variable prevent requests hitting same script until first 1 time finishes. need on per user basis.
is alternative create database table tracks if possible run query? seems sessions wait (unless session_write_close() called). session_write_close won't work in case.
i want this:
here basic logic
if (!$this->session->userdata('sales_report_running')) { $this->session->set_userdata('sales_report_running', true); //do expensive query $this->session->set_userdata('sales_report_running', false); } php session
No comments:
Post a Comment