Enhancement to clearNotifyWidgetCacheForUser: Support for Specific User ID Cache Clearing

Created on 4 March 2024, 4 months ago

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.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡¦Saudi Arabia bamlhes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024