src/xPDO/Cache/xPDOCacheManager.php
public function refresh(array $providers = array(), array &$results = array()) {
        if (empty($providers)) {
            foreach ($this->caches as $cacheKey => $cache) {
                $providers[$cacheKey] = array();
            }
        }
        foreach ($providers as $key => $options) {
            if (array_key_exists($key, $this->caches) && !array_key_exists($key, $results)) {
                $results[$key] = $this->clean(array_merge($options, array(xPDO::OPT_CACHE_KEY => $key)));
            }
        }
        return (array_search(false, $results, true) === false);
    }
public function refresh(array $providers = array(), array &$results = array()) {
        if (empty($providers)) {
            foreach ($this->caches as $cacheKey => $cache) {
                $providers[$cacheKey] = array();
            }
        }
        foreach ($providers as $key => $options) {
            if (array_key_exists($key, $this->caches) && !array_key_exists($key, $results)) {
                $results[$key] = $this->clean(array_merge($options, array(xPDO::OPT_CACHE_KEY => $key)));
            }
        }
        return (array_search(false, $results, true) === false);
    }
public function refresh ( array $ providers = array ( ) , array & $ results = array ( ) ) { if ( empty ( $ providers ) ) { foreach ( $ this -> caches as $ cacheKey => $ cache ) { $ providers [ $ cacheKey ] = array ( ) ; } } foreach ( $ providers as $ key => $ options ) { if ( array_key_exists ( $ key , $ this -> caches ) && ! array_key_exists ( $ key , $ results ) ) { $ results [ $ key ] = $ this -> clean ( array_merge ( $ options , array ( xPDO :: OPT_CACHE_KEY => $ key ) ) ) ; } } return ( array_search ( false , $ results , true ) === false ) ; }
Refresh specific or all cache providers.

The default behavior is to call clean() with the provided options

@param array $providers An associative array with keys representing the cache provider key
and the value an array of options.
@param array &$results An associative array for collecting results for each provider.
@return array An array of results for each provider that is refreshed.
Refresh specific or all cache providers .