wordpress/wp-content/themes/basic/themify/class-themify-enqueue.php
/** Cron job to remove old concate css files and customizer css files
	 * return void
	*/
Cron job to remove old concate css files and customizer css files
return void
Cron job to remove old concate css files and customizer css files return void
public static function cron(){
		$path=pathinfo(self::getCurrentVersionFolder());
		$dir=$path['dirname'].'/';
		clearstatcache();
		if (is_dir($dir) && ($handle = opendir($dir))) {
			$currentFolder=$path['filename'];
			$globalKey='-'.$currentFolder.'-';
			while (false !== ($f = readdir($handle))) {
				if ($f !== '.' && $f !== '..' && $currentFolder!==$f && strpos($f,$globalKey,5)===false) { 
					Themify_Filesystem::delete($dir.$f);
				}
			}
			closedir($handle);
			unset($currentFolder,$dir,$globalKey);
		}
		$_arr = themify_upload_dir();
		$upload_dir=rtrim($_arr['basedir'],'/');
		unset($path,$_arr);
		if (self::$themeVersion!==null && is_dir($upload_dir) && ($handle = opendir($upload_dir))) {
			$cssFile=THEMIFY_VERSION.'-'.self::$themeVersion;
			while (false !== ($f = readdir($handle))) {
				if ($f !== '.' && $f !== '..' && strpos($f,'themify-customizer-')===0 && strpos($f,$cssFile,10)===false && is_file($upload_dir.$f)) { 
					unlink($upload_dir.$f);
				}
			}
			closedir($handle);
		}
	}
public static function cron ( ) { $ path = pathinfo ( self :: getCurrentVersionFolder ( ) ) ; $ dir = $ path [ 'dirname' ] . '/' ; clearstatcache ( ) ; if ( is_dir ( $ dir ) && ( $ handle = opendir ( $ dir ) ) ) { $ currentFolder = $ path [ 'filename' ] ; $ globalKey = '-' . $ currentFolder . '-' ; while ( false !== ( $ f = readdir ( $ handle ) ) ) { if ( $ f !== '.' && $ f !== '..' && $ currentFolder !== $ f && strpos ( $ f , $ globalKey , 5 ) === false ) { Themify_Filesystem :: delete ( $ dir . $ f ) ; } } closedir ( $ handle ) ; unset ( $ currentFolder , $ dir , $ globalKey ) ; } $ _arr = themify_upload_dir ( ) ; $ upload_dir = rtrim ( $ _arr [ 'basedir' ] , '/' ) ; unset ( $ path , $ _arr ) ; if ( self :: $ themeVersion !== null && is_dir ( $ upload_dir ) && ( $ handle = opendir ( $ upload_dir ) ) ) { $ cssFile = THEMIFY_VERSION . '-' . self :: $ themeVersion ; while ( false !== ( $ f = readdir ( $ handle ) ) ) { if ( $ f !== '.' && $ f !== '..' && strpos ( $ f , 'themify-customizer-' ) === 0 && strpos ( $ f , $ cssFile , 10 ) === false && is_file ( $ upload_dir . $ f ) ) { unlink ( $ upload_dir . $ f ) ; } } closedir ( $ handle ) ; } }
Cron job to remove old concate css files and customizer css files
 return void
Cron job to remove old concate css files and customizer css files return void
//Need for Backward Compatibility, can be removed 11.05.2021