I am having an intermittent issue which is causing havoc on my wordpress site. Some conditional is occuring which causes get_option(‘home’) and get_option(‘siteurl’) to return null even though there is a value set for that option in the database. When this happens there are a number of unfortunate side effects which obviously causes the site to break aesthetically as well as functionally.
I suspect the issue may be occuring in the database layer and only lasts momentarily however the effects persist for a while due to heavy caching via w3 total cache and varnish (I am using w3tc db query caching). Has anyone ever encountered this issue before or have any insights? Am I running into a mysql locking issue?
The solution was to upgrade the memcached daemon to version 1.4.11. Ever since I did that the problem went away so I guess I can chalk it up to version incompatibilities or bugs between php-memcache and memcached. My experience with memcached and it’s various clients has lead me to believe it’s quite touchy. I’m surprised given the very simple functionality it employs.