本站使用了 KeyCDN 作为前端加速,代替 CloudFlare

注:2016 年五月中旬,服务器已经不在 CloudFlare/KeyCDN 上了。

由于之前在 CloudFlare 上感觉起来还是比较慢。要想加速,需要开启 CloudFlare 的 Cache Everything,这样存在很多问题,比如过滤 Cookie,而且 CloudFlare 在中国速度也不佳,于是现在换用了 KeyCDN。

KeyCDN 会缓存页面上所有的内容,包括 HTML 页面。缓存周期为 1 周,自动使用 Let’s Encrypt 的 SSL。在中国有香港节点。我已经在后台配置好,当有以下操作时,清除该页缓存和首页缓存:

  • 文章/页面内容更新/发布
  • 文章/页面被删除

现在页面的速度,堪称完美!

你或许也想尝试这样做?现在只需要安装我的插件并按照说明对其进行配置即可。

“本站使用了 KeyCDN 作为前端加速,代替 CloudFlare”的6个回复

  1. Hi,
    Thanks for the wonderful plugin and the guide.
    I tried everything like in your guide but it still does not work! I like the way your site has the ssl greenbar and yet, all your ip are still not visible. Your site with www goes through keycdn while your site without www goes through cloudflare. that’s what I want and for all my pages to be served from keycdn like yours.

    Can you help some expand on how you made it please? 🙂

    1. The version 1.0 of this plugin is very hard to setup. The new version of this plugin (is still developing) will automatically setup KeyCDN Zone, update WordPress settings and generate DNS BIND file, which is mush easy to setup. I will publish the new version in this month (and may have a video to introduce how to setup), and you can update it and go to settings page to setup online. You need to delete existing zone and delete the code which added in wp-config.php to setup again.

      1. Thanks for your reply! That would be great. But how can I set it up for now?
        in my case, I can’t even get to the wp-admin.myseiteurl.com after changing. it keeps redirecting me back. when I try to view the site it says error, too many redirects.

        What does your setup look like in cloudflare? you have my mail maybe you can share a screenshot with me so I can try the same on my site?

        Right now your site works with the bar and www and it is covered with cdn and everything works. that’s what I want for my site but I guess I am missing something on the clundflare site.

        1. I think you need to change ‘wp-config.php’ before change URL, and please try to visit http://wp-admin.myseiteurl.com/wp-login.php and visit http://wp-admin.myseiteurl.com/wp-admin/ .

          If you can visit these page, then change your WordPress URL to http://wp-admin.myseiteurl.com/

          And about CloudFlare, only turn on CloudFlare on non-www domain and wp-admin domain.

          I notice there have something wrong in my Installation document. The siteurl doesn’t called siteurl in not multisite install, it called “WordPress URL”, and homeurl called siteurl.

          The new version is released just now.

          1. Hey,

            Thanks for the new version. it doesn’t work though!
            It has an error when you try to activate it. It says:

            Warning: require_once(/srv/users/serverpilot/apps/*****tips/public/wp-content/plugins/full-site-cache-kc/functions.php): failed to open stream: No such file or directory in /srv/users/serverpilot/apps/******tips/public/wp-content/plugins/full-site-cache-kc/full-site-cache-kc.php on line 44

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论可能需要审核才能显示,请尽量让自己的回复能够对别人有帮助

当有人回复你时你会收到邮件通知,你所回复的人能够看到你的电子邮件地址。