T
T
Tyoma Makeev2015-12-18 04:14:03
MySQL
Tyoma Makeev, 2015-12-18 04:14:03

When does WordPress write to the database?

In what cases does WordPress write something to the database? The obvious seems to be understandable when someone leaves a comment there, or when someone posts a post, or when someone logs in, but when no one logs in, no one writes anything, but just people read the site - there are some database entries?
And just another question. Is there any way to cache between php and mysql? So that php does not pull the database every time, but takes the information from somewhere closer, from some kind of cache?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wol_fi, 2015-12-18
@wol_fi

a just people reading the site - are there any records in the database?

yes, sessions are written/updated, at least.
There are thousands of them: memcache, radish, x-cache, apc, shared memory in the end)
There is a W3Cache plugin for WordPress, quite functional, it allows you to choose any popular caching method. From my experience, I can say that the memcache driver is disgusting there. I use apc on two projects, there seem to be no complaints.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question