* DeferrableUpdate classes can implement MergeableUpdate. Duplicate updates will be merged via the merge() method. * Make SquidUpdate support merge() so that duplicate URL purges are now caught accross the entire pre-send request execution. Change-Id: Idffdd3e71d89e4a0f28281e65a881113caae497c
16 lines
385 B
PHP
16 lines
385 B
PHP
<?php
|
|
|
|
/**
|
|
* Interface that deferrable updates can implement. DeferredUpdates uses this to merge
|
|
* all pending updates of PHP class into a single update by calling merge().
|
|
*
|
|
* @since 1.27
|
|
*/
|
|
interface MergeableUpdate {
|
|
/**
|
|
* Merge this update with $update
|
|
*
|
|
* @param MergeableUpdate $update Update of the same class type
|
|
*/
|
|
function merge( MergeableUpdate $update );
|
|
}
|