把全站都改成了page_cache方式了

2013年9月13日 12:28

1.文章时间改成具体的发布时间
2.分页route做了修改
3.nginx配置做了修改,把所有cache的文件都放到了caches里了

# Index HTML Files
if (-f $document_root/cache/$uri/index.html) {
  rewrite (.*) /caches/$1/index.html break;
}

# HTML Files
if (-f $document_root/cache/$uri.html) {
  rewrite (.*) /caches/$1.html break;
}

# Catch all
if (-f $document_root/cache/$uri) {
  rewrite (.*) /caches/$1 break;
}