function backup_migrate_destination::file_cache_get

cis7 destinations.inc backup_migrate_destination::file_cache_get()
cle7 destinations.inc backup_migrate_destination::file_cache_get()
elmsmedia7 destinations.inc backup_migrate_destination::file_cache_get()
icor7 destinations.inc backup_migrate_destination::file_cache_get()
meedjum_blog7 destinations.inc backup_migrate_destination::file_cache_get()
mooc7 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 sites/all/modules/ulmus/backup_migrate/includes/destinations.inc
List all the available files in the given destination with their destination specific id.

File

sites/all/modules/ulmus/backup_migrate/includes/destinations.inc, line 734
All of the destination handling code needed for Backup and Migrate.

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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.