You are here

function backup_migrate_destination::file_cache_get in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_destination::file_cache_get()
  2. 6.3 includes/destinations.inc \backup_migrate_destination::file_cache_get()
  3. 6.2 includes/destinations.inc \backup_migrate_destination::file_cache_get()
  4. 7.3 includes/destinations.inc \backup_migrate_destination::file_cache_get()
  5. 7.2 includes/destinations.inc \backup_migrate_destination::file_cache_get()

Retrieve the file list.

1 call to backup_migrate_destination::file_cache_get()
backup_migrate_destination::list_files in includes/destinations.inc
List all the available files in the given destination with their destination specific id.

File

includes/destinations.inc, line 939

Class

backup_migrate_destination
A base class for creating destinations.

Code

function file_cache_get() {
  backup_migrate_include('files');
  $cache = cache_get('backup_migrate_file_list:' . $this
    ->get_id());
  if (!empty($cache->data) && $cache->created > time() - $this->cache_expire) {
    $this->fetch_time = $cache->created;
    return $cache->data;
  }
  $this->fetch_time = 0;
  return NULL;
}