Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16147

prevent makestaticcache script adding new session in ezsession table for each node it caches

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0beta1
    • 4.3.0, 4.3.0alpha1, 4.4.0alpha4
    • Caching
    • 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

        Activity

          People

            andre1 andre1
            jkn jkn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: