protected function checkCache($originalFile, $cacheFile)
    {
        if (! $ret = parent::checkCache($originalFile, $cacheFile)) {
            return false;
        }

        if (Utils::isSerialized($ret, $ret)) {
            // Go through each file and make sure none of them have changed
            foreach ($ret['files'] as $file => $lastModified) {
                if (filemtime($file) > $lastModified) {
                    return false;
                }
            }

            $ret = serialize($ret);
        }

        return $ret;
    }
protected function checkCache($originalFile, $cacheFile)
    {
        if (! $ret = parent::checkCache($originalFile, $cacheFile)) {
            return false;
        }

        if (Utils::isSerialized($ret, $ret)) {
            // Go through each file and make sure none of them have changed
            foreach ($ret['files'] as $file => $lastModified) {
                if (filemtime($file) > $lastModified) {
                    return false;
                }
            }

            $ret = serialize($ret);
        }

        return $ret;
    }
protected function checkCache ( $ originalFile , $ cacheFile ) { if ( ! $ ret = parent :: checkCache ( $ originalFile , $ cacheFile ) ) { return false ; } if ( Utils :: isSerialized ( $ ret , $ ret ) ) { // Go through each file and make sure none of them have changed foreach ( $ ret [ 'files' ] as $ file => $ lastModified ) { if ( filemtime ( $ file ) > $ lastModified ) { return false ; } } $ ret = serialize ( $ ret ) ; } return $ ret ; }
Checks to see if cache exists and is the latest, if it does, return it
It also checks to see if this is LESS cache and makes sure all imported files are the latest

@param string $originalFile
@param string $cacheFile

@return bool|string|array
Checks to see if cache exists and is the latest if it does return it It also checks to see if this is LESS cache and makes sure all imported files are the latest