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

Memory issue with the updatecontentobjectname.php script due to caching

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.6.12, 3.7.10, 3.8.7, 3.9.0rc2
    • 3.6.11, 3.7.9, 3.8.5, 3.8.6, 3.9.0alpha1, 3.9.0rc1
    • Misc
    • None
    • Operating System: linux
      PHP Version: 4.4.3 4.4.4
      Database and version: MySQL 4.1

    Description

      The script calls a function which calls another function ( eZContentObject->fetchDataMap ) which caches its result in "$GLOBALS['eZContentObjectDataMapCache']". Because of this the script will use a lot of memory on large databases.

      Setting the global variable to null each time solves the problem, see patch.

      Steps to reproduce

      Run the updatecontentobjectname.php ( update/common/scripts/updatecontentobjectname.php ) on a database with 1000+ objects, and take a look at the memory usage.

      Attachments

        Activity

          People

            rl rl
            rla rla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: