Moment For Technology

Wordpress is too slow to view articles, add index

Posted on Nov. 27, 2023, 10:16 a.m. by Ehsaan Yohannan
Category: reading Tag: php

SELECT COUNT(*) FROM wp_posts WHERE ( ( post_type = 'post' AND ( post_status = 'publish' OR post_status = 'private' ) ) ) AND post_author = 1; Alter table wp_posts add index status_index(post_type,post_status,post_author);

ERROR 1067 (42000): Invalid default value for 'post_date' SET SQL_MODE='ALLOW_INVALID_DATES'; Execute again and resolve the problem

About (Moment For Technology) is a global community with thousands techies from across the global hang out!Passionate technologists, be it gadget freaks, tech enthusiasts, coders, technopreneurs, or CIOs, you would find them all here.