Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何减少WordLift的数量';什么是原木?_Php_Wordpress_Wordlift - Fatal编程技术网

Php 如何减少WordLift的数量';什么是原木?

Php 如何减少WordLift的数量';什么是原木?,php,wordpress,wordlift,Php,Wordpress,Wordlift,我们的网站日志中有很多与WordLift相关的事件 具体来说,我们在错误日志文件中看到许多类似的行: [2018年8月21日16:17:04 UTC]跟踪[Wordlift\u文件\u缓存\u服务]正在尝试获取缓存。。。 [2018年8月21日16:17:29 UTC]调试[Wordlift_实体_Post_Type_服务]注册Post Type实体。。。 [2018年8月21日16:17:31 UTC]跟踪[Wordlift_缓存的\u后转换器]后963关系已更改,缓存无效。。。 如何限制

我们的网站日志中有很多与WordLift相关的事件

具体来说,我们在错误日志文件中看到许多类似的行:

[2018年8月21日16:17:04 UTC]跟踪[Wordlift\u文件\u缓存\u服务]正在尝试获取缓存。。。
[2018年8月21日16:17:29 UTC]调试[Wordlift_实体_Post_Type_服务]注册Post Type实体。。。
[2018年8月21日16:17:31 UTC]跟踪[Wordlift_缓存的\u后转换器]后963关系已更改,缓存无效。。。


如何限制WordLift的日志记录?

看起来调试已启用,WordLift正在将跟踪、调试、信息、警告和错误消息记录到PHP日志记录工具(称为错误日志,因此人们普遍误解它们都是错误)

要过滤WordLift日志级别,请将以下内容添加到wp-config.php文件中(3=记录警告和错误,4=仅记录错误):

定义('WL\u LOG\u LEVEL',3)