You are here

function _acquia_purge_get_capacity in Acquia Purge 7

DEPRECATED: Calculate how many items can be purged during the execution of this script.

File

./acquia_purge.deprecated.inc, line 104
Deprecated functions.

Code

function _acquia_purge_get_capacity($subtract = NULL) {
  _acquia_purge_deprecated('_acquia_purge_service()->capacity()->queueClaimsLimit()');
  $limit = _acquia_purge_service()
    ->capacity()
    ->queueClaimsLimit();
  if (!is_null($subtract)) {
    _acquia_purge_service()
      ->capacity()
      ->queueClaimsSubtract($subtract);
  }
  return $limit;
}