src/ShopRatingServiceBundle/objects/TPkgShopRatingService_TrustedShops.class.php
public function TrustedShopsImage_CacheCheck($filename_cache, $timeout = 10800)
    {
        $bRet = false;
        if (file_exists($filename_cache)) {
            $timestamp = filemtime($filename_cache);
            // Seconds
            if (mktime() - $timestamp < $timeout) {
                $bRet = true;
            } else {
                $bRet = false;
            }
        } else {
            $bRet = false;
        }

        return $bRet;
    }
public function TrustedShopsImage_CacheCheck($filename_cache, $timeout = 10800)
    {
        $bRet = false;
        if (file_exists($filename_cache)) {
            $timestamp = filemtime($filename_cache);
            // Seconds
            if (mktime() - $timestamp < $timeout) {
                $bRet = true;
            } else {
                $bRet = false;
            }
        } else {
            $bRet = false;
        }

        return $bRet;
    }
public function TrustedShopsImage_CacheCheck ( $ filename_cache , $ timeout = 10800 ) { $ bRet = false ; if ( file_exists ( $ filename_cache ) ) { $ timestamp = filemtime ( $ filename_cache ) ; // Seconds if ( mktime ( ) - $ timestamp < $ timeout ) { $ bRet = true ; } else { $ bRet = false ; } } else { $ bRet = false ; } return $ bRet ; }
Return FALSE if cache no more valid!

@param string $filename_cache
@param int    $timeout

@return bool
Return FALSE if cache no more valid!