SwatDB/SwatDBDataObject.php
public function flushCacheNamespaces($ns_array = null)
    {
        if ($ns_array === null) {
            $ns_array = $this->getCacheNamespaces();
        }

        if ($this->flushable_cache instanceof SwatDBCacheNsFlushable) {
            $ns_array = array_unique($ns_array);
            foreach ($ns_array as $ns) {
                $this->flushable_cache->flushNs($ns);
            }
        }
    }
public function flushCacheNamespaces($ns_array = null)
    {
        if ($ns_array === null) {
            $ns_array = $this->getCacheNamespaces();
        }

        if ($this->flushable_cache instanceof SwatDBCacheNsFlushable) {
            $ns_array = array_unique($ns_array);
            foreach ($ns_array as $ns) {
                $this->flushable_cache->flushNs($ns);
            }
        }
    }
public function flushCacheNamespaces ( $ ns_array = null ) { if ( $ ns_array === null ) { $ ns_array = $ this -> getCacheNamespaces ( ) ; } if ( $ this -> flushable_cache instanceof SwatDBCacheNsFlushable ) { $ ns_array = array_unique ( $ ns_array ) ; foreach ( $ ns_array as $ ns ) { $ this -> flushable_cache -> flushNs ( $ ns ) ; } } }
Flushes the cache name-spaces for this object.

@param array $ns_array An optional array of name-spaces to flush.
If no name-spaces are specified,
{@link SwatDBDataObject::getCacheNamespaces()} is
used to get the array of name-spaces.

@see SwatDBDataObject::setFlushableCache()
@see SwatDBDataObject::getCacheNamespaces()
Flushes the cache name - spaces for this object .