px-files/_sys/php/commands/clearcache.php
public function exec(){
		print '-- cleaning "caches"'."\n";
		if( $this->px->site() ){
			$this->px->site()->__destruct(); // sitemap.sqlite を開放 (Windowsで、排他ロックされるためパブリッシュでエラーが起きる問題を回避するため)
		}
		print $this->cleanup_dir( $this->path_homedir.'_sys/ram/caches/' ).' items done.'."\n";
		print "\n";
		print '-- cleaning "publish"'."\n";
		print $this->cleanup_dir( $this->path_homedir.'_sys/ram/publish/' ).' items done.'."\n";
		print "\n";
		if( strlen( @$this->px->conf()->public_cache_dir ) ){
			print '-- cleaning "public caches"'."\n";
			print $this->cleanup_dir( $this->path_public_caches ).' items done.'."\n";
			print "\n";
		}
		return true;
	}
public function exec(){
		print '-- cleaning "caches"'."\n";
		if( $this->px->site() ){
			$this->px->site()->__destruct(); // sitemap.sqlite を開放 (Windowsで、排他ロックされるためパブリッシュでエラーが起きる問題を回避するため)
		}
		print $this->cleanup_dir( $this->path_homedir.'_sys/ram/caches/' ).' items done.'."\n";
		print "\n";
		print '-- cleaning "publish"'."\n";
		print $this->cleanup_dir( $this->path_homedir.'_sys/ram/publish/' ).' items done.'."\n";
		print "\n";
		if( strlen( @$this->px->conf()->public_cache_dir ) ){
			print '-- cleaning "public caches"'."\n";
			print $this->cleanup_dir( $this->path_public_caches ).' items done.'."\n";
			print "\n";
		}
		return true;
	}
execution: clearcache
外部から直接呼び出すときはこちら。