lib/private/Template/SCSSCacher.php
/**
	 * Process the caching process if needed
	 * @param string $root Root path to the nextcloud installation
	 * @param string $file
	 * @param string $app The app name
	 * @return boolean
	 */
Process the caching process if needed
@param string $root Root path to the nextcloud installation
@param string $file
@param string $app The app name
@return boolean
Process the caching process if needed @param string $root Root path to the nextcloud installation @param string $file @param string $app The app name @return boolean
public function process($root, $file, $app, $session=null) {
		$path = explode('/', $root . '/' . $file);
		$fileNameSCSS = array_pop($path);
		$fileNameCSS = str_replace('.scss', '.css', $fileNameSCSS);
		$path = implode('/', $path);
		$webDir = substr($path, strlen($this->serverRoot)+1);
		try {
			$folder = $this->appData->getFolder($app);
		} catch(NotFoundException $e) {
			$folder = $this->appData->newFolder($app);
		}
		if(!$this->variablesChanged($session) && $this->isCached($fileNameCSS, $folder)) {
			return true;
		}
		return $this->cache($path, $fileNameCSS, $fileNameSCSS, $folder, $webDir,$session);
	}
public function process ( $ root , $ file , $ app , $ session = null ) { $ path = explode ( '/' , $ root . '/' . $ file ) ; $ fileNameSCSS = array_pop ( $ path ) ; $ fileNameCSS = str_replace ( '.scss' , '.css' , $ fileNameSCSS ) ; $ path = implode ( '/' , $ path ) ; $ webDir = substr ( $ path , strlen ( $ this -> serverRoot ) + 1 ) ; try { $ folder = $ this -> appData -> getFolder ( $ app ) ; } catch ( NotFoundException $ e ) { $ folder = $ this -> appData -> newFolder ( $ app ) ; } if ( ! $ this -> variablesChanged ( $ session ) && $ this -> isCached ( $ fileNameCSS , $ folder ) ) { return true ; } return $ this -> cache ( $ path , $ fileNameCSS , $ fileNameSCSS , $ folder , $ webDir , $ session ) ; }
Process the caching process if needed
 @param string $root Root path to the nextcloud installation
 @param string $file
 @param string $app The app name
 @return boolean
Process the caching process if needed @param string $root Root path to the nextcloud installation @param string $file @param string $app The app name @return boolean
// creating css appdata folder