內容簡介
這個 WordPress 外掛可輕鬆透過快取 API 儲存 WP_Query、WP_User_Query 和 WP_Meta_Query 的結果,提升查詢效能。
當任何文章被更新,所有儲存的查詢都會自動重置。
基本用法:
指定查詢的引數($args)
指定查詢的名稱($name)
$query = jpd2_better_query( $args, $name );
可以像其他 WP_Query 物件一樣使用 $query。
其他用法請參考 FAQ
外掛標籤
開發者團隊
原文外掛簡介
Makes caching the results of a WP_Query, WP_User_Query and WP_Meta_Query, via the transients API easy. Realize increased performance, by caching the results of your queries, with one simple function.
All saved queries are automatically reset when any post is updated.
Basic usage:
Specify arguments for the query ($args)
Give the query a name ($name)
$query = jpd2_better_query( $args, $name );
Use $query like you would any other WP_Query object.
See FAQ for other usages
