Details
-
Improvement
-
Resolution: Fixed
-
Medium
-
4.3.0, 4.3.0alpha1, 4.4.0alpha4
-
None
Description
each request made by the makestaticcache script to eZ Publish generates a new entry in the ezsession table.
- this is unnecessary, to store a new session each time
- this is causing unnecessary write SQL's to the database
- this is flooding the ezsession table, if you have many nodes and the script running as a cron.
- causing the script to run (slightly) longer
- also causing the session cleanup process to take longer than what should have been necessary
ezstaticcache::storeCache calls static method ezhttptool::getDataByURL, which uses cURL if available, or falls back to fopen().
would it be feasible to enhance either class ezstaticcache or ezhttptool so that it fetches and returns/stores the cookie when it accesses the site the first time? then it will send the subsequent http requests with the cookie in the header, preventing eZ Publish from creating new sessions and saving time (and table rows...) on the procedure.
cURL is already an ez publish requirement:
http://ez.no/ezpublish/requirements
the basic php library can offer similar functionality with fsockopen+fwrite+fclose, but I assume cURL will still be quicker.
Attachments
Issue Links
- relates to
-
EZP-17012 Add session handler & support for anonymous sessions
- Closed