Updated: Comment #0
Problem/Motivation
Current user service going to be refactored and should be properly injected into services according #2180109-96: Change the current_user service to a proxy
Forum manager serialized with all its services and static caches
Proposed resolution
Extend forum manager from DependencySerialization
and clean-up static cache like #2081585-70: [META] Modernize the History module
Update methods to accept user account as required argument.
Remaining tasks
file patch
User interface changes
no
API changes
tbd
Comment | File | Size | Author |
---|---|---|---|
#11 | 2201659-11.patch | 5.65 KB | akozma |
Comments
Comment #1
andypostsuppose this could be simply grep'ed
Comment #2
larowlanWhen is forum manager serialized?
Comment #3
andyposteverytime when used in ajax forms
Comment #4
larowlanworking on this
Comment #5
larowlanSomething like so?
Comment #6
andypostSure, also spotted.
this one is confusing, but out o scope
Comment #7
larowlanAdded #2205101: Weird use of globals for table header in Forum for the global
Comment #8
Dries CreditAttribution: Dries commentedThis patch looks good but what is the __sleep() and __wakeup() for?
Comment #9
larowlanIf an object is serialized, php calls wakeup function before unserializing. The sleep function is called before serializing. If forum manager is injected into a form, and that form uses caching (eg ajax) then forum manager gets serialized. This ensures it does so without keeping stale values.
Comment #10
alexpottforum-mgr-serialization-2201659.1.patch no longer applies.
Comment #11
akozma CreditAttribution: akozma commentedRerolled.
Comment #12
andypostback to rtbc
Comment #13
alexpottCommitted f099e8c and pushed to 8.x. Thanks!