Function Hook_cron_cache_cleanup->compare_filetime

Definitions

sources/hooks/systems/cron/cache_cleanup.php

  • Callback for sorting an array of file paths by filemtime and fileatime, whichever is newest.A newer filemtime represents a cache which has recently been made and likely to be used, thus not stale.And a newer fileatime represents a cache which has recently been used and thus also not yet stale.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$a URLPATH required parameter N/A N/A The relative path of file A
$b string required parameter N/A N/A The relative path of file B

Return

  • The comparison order directive
  • Type: integer
  • Set: N/A
  • Range: N/A