views:

30

answers:

1

Hi

So I'm making a plugin that gets a set of posts (using wp_query), and it does this every time you refresh a page.

Can I cache the query results so the page gets generated faster? If so, how do I do it? because WP_cache functions don't work even if I enable cache in the config file.

A alternative to wp_cache seem to be transients. but the transient data is too stored in the database so isn't that the same as using wp_query (both access the database anyway)?

A: 

What about something like DB Cache Reloaded? I believe it lets you cache all queries that are run.

Daniel15