今天试了下WP_Query的缓存优化,速度嗖嗖的
这参数一加,页面加载快多了,再也不卡了哈哈
$args = array(
'posts_per_page' => 5,
'no_found_rows' => true,
'cache_results' => true
);
$query = new WP_Query($args);这参数一加,页面加载快多了,再也不卡了哈哈
登录/注册