Changeset ebeff435b16271673105db99dd5b9924d930855f
- Timestamp:
- 03/24/07 12:20:07
(2 years ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1174735207 +0100
- git-parent:
[31f53b6286945aab6edffb78a81b14e9201333b2]
- git-author:
- Christopher Jung <bktheg@web.de> 1174735207 +0100
- Message:
Admin-Kommando zum Leeren der Caches eingebaut
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcb6f3cd |
rebeff43 |
|
| 47 | 47 | import net.driftingsouls.ds2.server.framework.Loggable; |
|---|
| 48 | 48 | import net.driftingsouls.ds2.server.framework.User; |
|---|
| | 49 | import net.driftingsouls.ds2.server.framework.caches.CacheManager; |
|---|
| 49 | 50 | import net.driftingsouls.ds2.server.framework.db.Database; |
|---|
| 50 | 51 | import net.driftingsouls.ds2.server.framework.db.SQLQuery; |
|---|
| … | … | |
| 98 | 99 | output = cmdExecTask(context, command); |
|---|
| 99 | 100 | } |
|---|
| | 101 | else if( command[0].equals("clearcaches") ) { |
|---|
| | 102 | output = cmdClearCaches(context, command); |
|---|
| | 103 | } |
|---|
| 100 | 104 | else { |
|---|
| 101 | 105 | output = "Unbekannter Befehl "+command[0]; |
|---|
| … | … | |
| 105 | 109 | output = "1"; |
|---|
| 106 | 110 | } |
|---|
| | 111 | |
|---|
| | 112 | return output; |
|---|
| | 113 | } |
|---|
| | 114 | |
|---|
| | 115 | private static String cmdClearCaches( Context context, String[] command ) { |
|---|
| | 116 | String output = "Caches geleert"; |
|---|
| | 117 | |
|---|
| | 118 | CacheManager.getInstance().clearCaches(); |
|---|
| 107 | 119 | |
|---|
| 108 | 120 | return output; |
|---|