|
@@ -107,6 +107,9 @@ func (s *Short) ClearCache() {
|
|
cacheIndex = []byte{}
|
|
cacheIndex = []byte{}
|
|
}
|
|
}
|
|
log.Println("after cacheIndex:", string(cacheIndex))
|
|
log.Println("after cacheIndex:", string(cacheIndex))
|
|
|
|
+ s.ServeJson(map[string]interface{}{
|
|
|
|
+ "state": len(cacheIndex),
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
func (s *Short) WhiteList() error {
|
|
func (s *Short) WhiteList() error {
|