Updater¶
- 
class 
OC\Files\Cache\Updater¶ - Update the cache and propagate changes
Source: lib/private/Files/Cache/Updater.php#40 Implements: OCP\Files\Cache\IUpdater 
Properties¶
- 
protected static property 
OC\Files\Cache\Updater::$enabled¶ Source: lib/private/Files/Cache/Updater.php#44 Type: bool 
- 
protected static property 
OC\Files\Cache\Updater::$storage¶ Source: lib/private/Files/Cache/Updater.php#49 Type: \OC\Files\Storage\Storage
- 
protected static property 
OC\Files\Cache\Updater::$propagator¶ Source: lib/private/Files/Cache/Updater.php#54 Type: \OC\Files\Cache\Propagator
- 
protected static property 
OC\Files\Cache\Updater::$scanner¶ Source: lib/private/Files/Cache/Updater.php#59 Type: \OC\Files\Cache\Scanner
- 
protected static property 
OC\Files\Cache\Updater::$cache¶ Source: lib/private/Files/Cache/Updater.php#64 Type: \OC\Files\Cache\Cache
Methods¶
- 
public 
OC\Files\Cache\Updater::__construct($storage)¶ Source: Parameters: - $storage (
OC\Files\Storage\Storage) 
- $storage (
 
- 
public 
OC\Files\Cache\Updater::disable()¶ - Disable updating the cache trough this updater
Source: lib/private/Files/Cache/Updater.php#79  
- 
public 
OC\Files\Cache\Updater::enable()¶ - Re-enable the updating of the cache trough this updater
Source: lib/private/Files/Cache/Updater.php#86  
- 
public 
OC\Files\Cache\Updater::getPropagator()¶ - Get the propagator for etags and mtime for the view the updater works on
Source: lib/private/Files/Cache/Updater.php#95 Returns: \OC\Files\Cache\Propagator 
- 
public 
OC\Files\Cache\Updater::propagate($path, $time=null)¶ - Propagate etag and mtime changes for the parent folders of $path up to the root of the filesystem
Source: Parameters: - $path (string) the path of the file to propagate the changes for
 - $time (int | null) the timestamp to set as mtime for the parent folders, if left out the current time is used
 
 
- 
public 
OC\Files\Cache\Updater::update($path, $time=null)¶ - Update the cache for $path and update the size, etag and mtime of the parent folders
Source: Parameters: - $path (string)
 - $time (int)
 
 
- 
public 
OC\Files\Cache\Updater::remove($path)¶ - Remove $path from the cache and update the size, etag and mtime of the parent folders
Source: Parameters: - $path (string)
 
 
- 
public 
OC\Files\Cache\Updater::renameFromStorage($sourceStorage, $source, $target)¶ - Rename a file or folder in the cache and update the size, etag and mtime of the parent folders
Source: Parameters: - $sourceStorage (
OCP\Files\Storage\IStorage) - $source (string)
 - $target (string)
 
 - $sourceStorage (