WMDE-leszek added a comment.

What line in Wikibase actually does this unserialization? perhaps we could change that to something that wouldn't have such a global effect.

That's where the fun lies. Technically speaking, Wikibase itself does not do serialize/unserialize. PHP serialization happens in EntityRevisionCache::set/get which are basically calling set/get on BagOStuff putting EntityRevision instance in the cache.

That actually brings up another option we've briefly mentioned in the exploration group yesterday (as with others, I am not suggesting it being a good pick):

  1. Do not store EntityRevision objects into MW cache, but use own serialization of those objects or so.

Do problem of handling of unknown EntityIds etc would not really be solved. Wikibase would be more in the control of such situations, though. Which might be good, or not that good thing.


TASK DETAIL
https://phabricator.wikimedia.org/T197252

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: WMDE-leszek
Cc: aaron, Tarrow, Ladsgroup, ArielGlenn, daniel, aude, Addshore, Aleksey_WMDE, Pablo-WMDE, hoo, WMDE-leszek, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, Darkdadaah, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to