Cache method for plugins.

Hi, I am developing a new plugin for embed content. Works fine but the plugin is its so slow when I refresh the page. The problem is when the query is performed to obtain information on each page every time when I refresh the page. Exist any way to apply a cache that stores information for each query and thus not make an inquiry when the page is refreshed? Thanks.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking