* PRESEND/POSTSEND constants can now be used in addUpdate() and addCallableUpdate() to control when the update runs. This is useful for updates that may report errors the client should see or to just get a head start on queued or pubsub based updates like CDN purges. The OutputPage::output() method can easily take a few 100ms. * Removed some argument b/c code from doUpdates(). * Also moved DeferrableUpdate to a separate file. Change-Id: I9831fe890f9f68f9ad8c4f4bba6921a8f29ba666
14 lines
258 B
PHP
14 lines
258 B
PHP
<?php
|
|
|
|
/**
|
|
* Interface that deferrable updates should implement. Basically required so we
|
|
* can validate input on DeferredUpdates::addUpdate()
|
|
*
|
|
* @since 1.19
|
|
*/
|
|
interface DeferrableUpdate {
|
|
/**
|
|
* Perform the actual work
|
|
*/
|
|
function doUpdate();
|
|
}
|