Problem/Motivation

The notify_widget module's function clearNotifyWidgetCacheForUser can only invalidate cache for the current user. This limitation poses challenges in scenarios where cache invalidation is needed for a specific user, not the one currently logged in.

Steps to reproduce

  1. Attempt to invalidate cache for a user different from the current user using clearNotifyWidgetCacheForUser.
  2. Observe the lack of capability to specify which user's cache to clear.

Proposed resolution

I've created a patch that adds the ability to specify a user ID to the clearNotifyWidgetCacheForUser function. This allows for targeted cache invalidation for any user, improving the module's flexibility and effectiveness. Apply the patch to enable this functionality.

Remaining tasks

  1. Review and test the patch to ensure it works as expected without introducing new issues.
  2. Merge the patch for future module releases.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 notify-widget-3425518-2.patch982 bytesbamlhes

Comments

bamlhes created an issue. See original summary.

bamlhes’s picture

StatusFileSize
new982 bytes

  • scot.hubbard committed a13f6305 on 1.0.x authored by bamlhes
    Issue #3425518 by bamlhes: Enhancement to clearNotifyWidgetCacheForUser...
scot.hubbard’s picture

Status: Needs review » Fixed
scot.hubbard’s picture

Status: Fixed » Closed (fixed)