• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/infrastructure/service/recentaddressesservice.php
  • Класс: BitrixLocationInfrastructureServiceRecentAddressesService
  • Вызов: RecentAddressesService::cleanUp
static function cleanUp(): string
{
	Application::getConnection()->query("
		DELETE FROM b_location_recent_address
		WHERE
		    USED_AT < DATE_SUB(NOW(), INTERVAL 30 DAY)
	");

	return '\Bitrix\Location\Infrastructure\Service\RecentAddressesService::cleanUp();';
}