admin管理员组文章数量:1304889
With a default Wordpress install, with no plugin installed, does the read-only visiting of the website generates write operations in the database? By read-only, I mean: visitors come and don't post user-submitted contents (like comments, etc.)
If so, which data is written, and in which database table
?
(When using for example Apache, logs age written directly in /var/log/apache2/*.log
, and I guess Wordpress doesn't do a second layer of logging into the MySQL database, or does it?)
With a default Wordpress install, with no plugin installed, does the read-only visiting of the website generates write operations in the database? By read-only, I mean: visitors come and don't post user-submitted contents (like comments, etc.)
If so, which data is written, and in which database table
?
(When using for example Apache, logs age written directly in /var/log/apache2/*.log
, and I guess Wordpress doesn't do a second layer of logging into the MySQL database, or does it?)
2 Answers
Reset to default 2I think WP out-of-the-box does not write or store any data for non-logged in users.
WP - again by default - does not write log files, that is an optional config defined in the wp-config.php file.
For a logged out user on a stock install of WordPress? No.
For a logged in user? Yes, their user session meta will be updated, and WordPress may check for updates and store the result as options/transients.
However there is no "logging" to the database, and no logs table.
WordPress also won't log to a file. If WP_DEBUG_LOG
is defined it will redirect PHP errors and notice messages to wp-content/debug.log
, but this must be turned on in the wp-config.php
file.
As or themes and plugins? You would need to contact the authors/developers.
If you are looking for activity logs, audit trails, visitor statistics, access logs, WordPress does not have these. You would need to install a plugin that provides them.
本文标签:
版权声明:本文标题:sql - Which data is written and stored in the database when read-only (non-posting, non-commenting) users visit the site? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741796409a2397962.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp_comments
andwp_commentmeta
:SELECT table_schema as `Database`, table_name AS `Table`, round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` FROM information_schema.TABLES ORDER BY (data_length + index_length) DESC LIMIT 10;
– Basj Commented Jan 28, 2021 at 13:29