def clearWxMc(): if MC_Available: try: from model import Category cids = Category.get_all_cat_id() print cids #文章内容的cache就不清除了,麻烦。 #如果都要清除的话,clear all cache好了,毕竟只有一个人写博客 klist = ['wx_latest','wx_artlists','wx_cats',] klist.append(cids) print klist mc.delete_multi(klist) except: pass
def get(self): self.echo('robots.txt', {'cats': Category.get_all_cat_id()})
def get(self): self.echo('robots.txt',{'cats':Category.get_all_cat_id()})