Метод deleteExpired

public static

Сигнатура метода

public static function deleteExpired(int $limit): int

Возвращает: int

Описание

Deletes at most $limit expired snapshots, oldest first, and reports the size of the batch it took. The number is an upper bound of what is gone: a row rewritten between the selection and the deletion is left where it is, and one more pass of the stepper costs less than counting the deleted rows.

Параметры

1
Имя Тип По умолчанию Флаги
$limit int —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Infrastructure/Agent/LastValuesCleanupAgent.php
Расположение метода в файле
Строки 47–72

Исходный код

PHP