예제 #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()})