Am 23/04/12 19:34, Daniel Kinzler schrieb:
> You think making a db query to check if the data is up to date, every time the
> page is *viewed*, is feasible? I would have though this prohibitively
> expensive... it would be nice and simple, of course.
> 
> The approach of marking the rendered page data as stale (using page_touched)
> whenever the data changes seems much more efficient. Though it does introduce
> some additional complexity.

Viewed by a logged in user, ie. the same case when we check page_touched.
Also note we are checking against a local cache. The way it's updated is
unspecified :)


> Also, checking on every page view is out of the questions for external sites,
> right? So we'd still need a push interface for these...

I think they'd use a cache with a configured ttl. So they wouldn't
actually be fetching it on each view, only every X hours.


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to