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
- Attempt to invalidate cache for a user different from the current user using clearNotifyWidgetCacheForUser.
- 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
- Review and test the patch to ensure it works as expected without introducing new issues.
- Merge the patch for future module releases.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | notify-widget-3425518-2.patch | 982 bytes | bamlhes |
Comments
Comment #2
bamlhes commentedComment #4
scot.hubbard commentedComment #5
scot.hubbard commented