示例#1
0
文件: common.py 项目: yobin/saepy-log
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
示例#2
0
 def get(self):
     self.echo('robots.txt', {'cats': Category.get_all_cat_id()})
示例#3
0
文件: blog.py 项目: yobin/saepy-log
 def get(self):
     self.echo('robots.txt',{'cats':Category.get_all_cat_id()})