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

Memcache persistence cache: user policies cache never cleared

    Details

      Description

      After EZP-23214 , when using memcache, modifying a user role/policies will not refresh the cache for user permissions, and using repository::hasAccess( $module, $function ) will always return the same result.

      Furthermore, clearing the caches through command-line does not resolve the problem.

      Restarting memcache does the trick, but all sessions are also lost in the process.

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Hi

          Do you have clear steps to reproduce this issue?
          Thanks

          Show
          Jérôme Vieilledent (Inactive) added a comment - Hi Do you have clear steps to reproduce this issue? Thanks
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Also, did you test with FileSystem cache handler ?

          Show
          Jérôme Vieilledent (Inactive) added a comment - Also, did you test with FileSystem cache handler ?
          Hide
          Joao Inacio (Inactive) added a comment - - edited

          Hi Jerome,
          Essentially after the first call the above function (for example from a command), any update to policies in the backend will not be taken into account (the function result is cached).
          I will update the description with clear steps to reproduce it as well as the FileSystem handler (AFAIR it was not affected, but I will double-check).

          Show
          Joao Inacio (Inactive) added a comment - - edited Hi Jerome, Essentially after the first call the above function (for example from a command), any update to policies in the backend will not be taken into account (the function result is cached). I will update the description with clear steps to reproduce it as well as the FileSystem handler (AFAIR it was not affected, but I will double-check).
          Hide
          Yannick Roger (Inactive) added a comment -

          Closing for now as we were not able to reproduce the issue. Feel free to reopen it we updated steps to reproduce.

          Show
          Yannick Roger (Inactive) added a comment - Closing for now as we were not able to reproduce the issue. Feel free to reopen it we updated steps to reproduce.

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Inacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: