px-files/_sys/php/commands/clearcache.php
private function kick(){
		$pxcmd = $this->px->get_px_command();

		if( @$pxcmd[1] == 'version' ){
			// 命令が clearcache.version の場合、バージョン番号を返す。
			$val = $this->px->get_version();
			@header('Content-type: application/json; charset=UTF-8');
			print json_encode($val);
			exit;
		}
		if( @strlen($pxcmd[1]) ){
			// 命令が不明の場合、エラーを表示する。
			if( $this->px->req()->is_cmd() ){
				header('Content-type: text/plain;');
				print $this->px->pxcmd()->get_cli_header();
				print 'execute PX command => "?PX=clearcache"'."\n";
				print $this->px->pxcmd()->get_cli_footer();
			}else{
				$html = '<p>Go to <a href="?PX=clearcache">PX=clearcache</a> to clear caches.</p>'."\n";
				print $this->px->pxcmd()->wrap_gui_frame($html);
			}
			exit;
		}

		print $this->px->pxcmd()->get_cli_header();
		print 'pickles home directory: '.$this->path_homedir."\n";
		print 'pickles docroot directory: '.$this->path_docroot."\n";
		print 'pickles public cache directory: '.$this->path_public_caches."\n";
		print '------------------------'."\n";
		print "\n";
		if( $this->is_publish_locked() ){
			print 'publish is now locked.'."\n";
			print '  (lockfile updated: '.@date('Y-m-d H:i:s', filemtime($this->path_lockfile)).')'."\n";
			print 'Try again later...'."\n";
			print 'exit.'."\n";
			print $this->px->pxcmd()->get_cli_footer();
			exit;
		}
		$this->exec();
		print "\n";
		print $this->px->pxcmd()->get_cli_footer();
		exit;
	}
private function kick(){
		$pxcmd = $this->px->get_px_command();

		if( @$pxcmd[1] == 'version' ){
			// 命令が clearcache.version の場合、バージョン番号を返す。
			$val = $this->px->get_version();
			@header('Content-type: application/json; charset=UTF-8');
			print json_encode($val);
			exit;
		}
		if( @strlen($pxcmd[1]) ){
			// 命令が不明の場合、エラーを表示する。
			if( $this->px->req()->is_cmd() ){
				header('Content-type: text/plain;');
				print $this->px->pxcmd()->get_cli_header();
				print 'execute PX command => "?PX=clearcache"'."\n";
				print $this->px->pxcmd()->get_cli_footer();
			}else{
				$html = '<p>Go to <a href="?PX=clearcache">PX=clearcache</a> to clear caches.</p>'."\n";
				print $this->px->pxcmd()->wrap_gui_frame($html);
			}
			exit;
		}

		print $this->px->pxcmd()->get_cli_header();
		print 'pickles home directory: '.$this->path_homedir."\n";
		print 'pickles docroot directory: '.$this->path_docroot."\n";
		print 'pickles public cache directory: '.$this->path_public_caches."\n";
		print '------------------------'."\n";
		print "\n";
		if( $this->is_publish_locked() ){
			print 'publish is now locked.'."\n";
			print '  (lockfile updated: '.@date('Y-m-d H:i:s', filemtime($this->path_lockfile)).')'."\n";
			print 'Try again later...'."\n";
			print 'exit.'."\n";
			print $this->px->pxcmd()->get_cli_footer();
			exit;
		}
		$this->exec();
		print "\n";
		print $this->px->pxcmd()->get_cli_footer();
		exit;
	}
kick