缓存穿透(请求到缓存未命中但是数据库有的数据)
缓存击穿(请求到缓存和数据库都没有的非法数据)
缓存雪崩(大量缓存过期导致数据库过载或崩溃)
继续阅读Laravel 服务容器?「Laravel 服务容器」是用于 管理类的依赖 和 执行依赖注入 的 工具。
继续阅读在 XML 中,只有 5 个预定义的实体引用,$nbsp; 应该替换为空格~
$content = Entities::replaceAllEntities($content);
在 XML 中,有 5 个预定义的实体引用:
| < | < | 小于 |
| > | > | 大于 |
| & | & | 和号 |
| ' | ‘ | 单引号 |
| " | “ | 引号 |
注释:在 XML 中,只有字符 “<” 和 “&” 确实是非法的。大于号是合法的,但是用实体引用来代替它是一个好习惯。
删除多余的控制字符即可~
$val = preg_replace('/[[:cntrl:]]/mu', '', $val);
ini_set('xdebug.max_nesting_level', 1024);
加大这个限制试试~
checking how to run the C++ preprocessor… /lib/cpp
configure: error: in `/tmp/pear/temp/pear-build-rootYPmYnu/swoole-4.5.9′:
configure: error: C++ preprocessor “/lib/cpp” fails sanity check
解决办法:
[root@xx xx]# yum install gcc-c++ glibc-headers
其中找到xdebug扩展加载处:
extension=xdebug.so
修改为:
zend_extension=xdebug.so
client_header_timeout 7d;
client_body_timeout 7d;
send_timeout 7d;
fastcgi_connect_timeout 7d;
fastcgi_read_timeout 7d;
fastcgi_send_timeout 7d;