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