Propagator

class OC\Files\Cache\Propagator
Propagate etags and mtimes within the storage
Source:lib/private/Files/Cache/Propagator.php#34
Implements:OCP\Files\Cache\IPropagator

Properties

protected static property OC\Files\Cache\Propagator::$storage
Source:lib/private/Files/Cache/Propagator.php#42
Type:\OC\Files\Storage\Storage

Methods

public OC\Files\Cache\Propagator::__construct($storage, $connection, $ignore=[])
Source:lib/private/Files/Cache/Propagator.php#54
public OC\Files\Cache\Propagator::propagateChange($internalPath, $time, $sizeDifference=0)
Source:

lib/private/Files/Cache/Propagator.php#66

Parameters:
  • $internalPath (string)
  • $time (int)
  • $sizeDifference (int) number of bytes the file has grown
protected OC\Files\Cache\Propagator::getParents($path)
Source:lib/private/Files/Cache/Propagator.php#117
public OC\Files\Cache\Propagator::beginBatch()
Mark the beginning of a propagation batch
Note that not all cache setups support propagation in which case this will be a noop

Batching for cache setups that do support it has to be explicit since the cache state is not fully consistent
before the batch is committed.
Source:lib/private/Files/Cache/Propagator.php#136
public OC\Files\Cache\Propagator::commitBatch()
Commit the active propagation batch
Source:lib/private/Files/Cache/Propagator.php#158