public function backup_migrate_destination::file_cache_get in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_destination::file_cache_get()
- 8.3 includes/destinations.inc \backup_migrate_destination::file_cache_get()
- 6.3 includes/destinations.inc \backup_migrate_destination::file_cache_get()
- 6.2 includes/destinations.inc \backup_migrate_destination::file_cache_get()
- 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;
}