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

Multiple expiration of `user-info-cache` when moving / removing locations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Confirmed
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.4.5
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
      None

      Description

      In `eZContentOperationCollection::removeNodes()` there is a loop that calls `$node->removeThis()`.
      Every iteration of the loop subsequently causes `eZRole::cleanupByNode( $this )` to be called, which calls
      `eZRole::expireCache()`, which calls `eZUser::cleanupCache()`.

      In installations with a large number of articles, where each article may have many locations, it's possible that several locations of one article are removed (or added) by script or by an editor, and this function is triggered quite often. In situations where though heavy content publishing / editing / work tec occurs, the eZ cache isn't stable and it expires very often which causes high load etc.

      Expected behaviour:

      The `user-info-cache` should only expire once when locations are moved / removed.

      Ref: ezpublish_legacy/kernel/content/ezcontentoperationcollection.php

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: