Anomie added a comment.

(IIRC @Anomie said caching in QueryPage is actually enabled when 'value' field is added to the query spec, otherwise it's useless. There might be more to it. He knows better)

QueryPage's caching associates a namespace+title with an integer. So while it's not clearly mentioned in the inline documentation, for things to work properly your code needs to degrade gracefully when fields other than namespace, title, and value aren't present in the result set.

QueryPage also has support built in for using a timestamp as value by converting it to a Unix epoch value, although in that mode it looks like the current schema only supports 1970-01-01T00:00:00Z to 2106-02-07T06:28:15Z.


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

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

To: Anomie
Cc: Anomie, Ladsgroup, Wikidata-bugs, Tobi_WMDE_SW, adrianheine, Multichill, Lydia_Pintscher, Reedy, QZanden, Izno, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to