Memcached fails/crashes every few hours

I have a CentOS 7 server with Memcached. There are a lot of requests, and usually after a few hours, the memcached daemon crashes. I always restart the service, but it crashes again a few hours later. The /var/log/memcached.log file is empty. These are the /etc/sysconfig/memcached settings: PORT=”11211″ USER=”memcached” MAXCONN=”1024″ CACHESIZE=”32″ OPTIONS=”-vv >> /var/log/memcached.log 2>&1″…

Details

pre_get_posts not working properly on pages

i am trying to add a filter to wordpress loops using pre_get_posts action which works fine on archives but all pages are returning 404 error. this is the code in functions.php: function add_city_condition_to_main_query($query) { if (!is_admin() && $query->is_main_query()) { if ($query->is_archive || $query->is_page) { if (get_current_city_id() && get_post_status(get_current_city_id())) { $meta_query = [[ ‘key’ => ‘city’,…

Details