You are here

public function backup_migrate_destination::file_cache_get in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_destination::file_cache_get()
  2. 8.3 includes/destinations.inc \backup_migrate_destination::file_cache_get()
  3. 6.3 includes/destinations.inc \backup_migrate_destination::file_cache_get()
  4. 6.2 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.

File

includes/destinations.inc, line 981

Class

backup_migrate_destination
A base class for creating destinations.

Code

public function file_cache_get() {
  require_once dirname(__FILE__) . '/files.inc';
  $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;
}