src/LdapTools/Factory/LdapObjectSchemaFactory.php
protected function shouldBuildCacheItem($key, $schemaName)
    {
        $cacheOutOfDate = false;
        if ($this->cache->getUseAutoCache()) {
            $lastModTime = $this->parser->getSchemaModificationTime($schemaName);
            $cacheCreationTime = $this->cache->getCacheCreationTime($key);
            $cacheOutOfDate = (!$lastModTime || ($lastModTime > $cacheCreationTime));
        }

        return ($cacheOutOfDate || !$this->cache->contains($key));
    }
protected function shouldBuildCacheItem($key, $schemaName)
    {
        $cacheOutOfDate = false;
        if ($this->cache->getUseAutoCache()) {
            $lastModTime = $this->parser->getSchemaModificationTime($schemaName);
            $cacheCreationTime = $this->cache->getCacheCreationTime($key);
            $cacheOutOfDate = (!$lastModTime || ($lastModTime > $cacheCreationTime));
        }

        return ($cacheOutOfDate || !$this->cache->contains($key));
    }
protected function shouldBuildCacheItem ( $ key , $ schemaName ) { $ cacheOutOfDate = false ; if ( $ this -> cache -> getUseAutoCache ( ) ) { $ lastModTime = $ this -> parser -> getSchemaModificationTime ( $ schemaName ) ; $ cacheCreationTime = $ this -> cache -> getCacheCreationTime ( $ key ) ; $ cacheOutOfDate = ( ! $ lastModTime || ( $ lastModTime > $ cacheCreationTime ) ) ; } return ( $ cacheOutOfDate || ! $ this -> cache -> contains ( $ key ) ) ; }
Whether or not the item needs to be parsed and cached.

@param string $key The cache key.
@param string $schemaName The schema name.
@return bool
Whether or not the item needs to be parsed and cached .