插件简介
没钱买数据库,还在用着阿里最渣档次的ecs,得想办法优化下加载速度先。
激活插件后所有文章会在本地以静态页的方式被缓存掉
写的比较急,功能还比较简单。
插件名:
TpHtmlCache
插件作者:
huhaku,本插件可能是魔改自老高的TpCache for Typecho。
插件地址:
安装方法
1、下载最新版本的文件。
2、将下载的压缩包进行解压,重命名为TpHtmlCache,并上传至Typecho插件目录中。
3、后台激活插件。
已测试可用typecho版本 1.1 (17.10.30)
如果看不懂直接改完名字,启用即可。
配置项
需要缓存的路径: 请用英文逗号分隔,从前往后匹配,前面的规则优先匹配。
如设置 "/huhaku/"则表示匹配所有包含/huhaku/的URL { http(s):// (.)/huhaku/(.) }
缓存时间: 最小单位为秒,也就是最小可以设置为1s 为0或为空则禁用缓存
注意
cache目录必须为可写(最好包括本插件目录在内设置为0775以上权限)
因为部分主机问题,去除卸载插件后自动清理缓存
如果插件启动失败,可以强制删除本插件目录后再点击后台的卸载按钮强制卸载
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /var/www/html/usr/themes/armx/functions.php on line 769
Warning: get_headers(): Failed to enable crypto in /var/www/html/usr/themes/armx/functions.php on line 769
Warning: get_headers(https://avatar.zrahh.com/avatar/26150470e93fa7d958bc9548ce2b4bd6?d=404): failed to open stream: operation failed in /var/www/html/usr/themes/armx/functions.php on line 769
Android 10Chrome 80.0.3987.99
真不错
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /var/www/html/usr/themes/armx/functions.php on line 769
Warning: get_headers(): Failed to enable crypto in /var/www/html/usr/themes/armx/functions.php on line 769
Warning: get_headers(https://avatar.zrahh.com/avatar/b2895babea09eaa90e196a7a0d050988?d=404): failed to open stream: operation failed in /var/www/html/usr/themes/armx/functions.php on line 769
Windows 10Chrome 79.0.3945.88
414
Android 10Chrome 77.0.3865.92
55555
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /var/www/html/usr/themes/armx/functions.php on line 769
Warning: get_headers(): Failed to enable crypto in /var/www/html/usr/themes/armx/functions.php on line 769
Warning: get_headers(https://avatar.zrahh.com/avatar/83049c1bd1842e5141d438312ec80a43?d=404): failed to open stream: operation failed in /var/www/html/usr/themes/armx/functions.php on line 769
Windows 10Chrome 84.0.4147.105
lkjf;alj饭卡后方可安好file