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.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov

ihayredinov - 0 likes
- Víctor Ibáñez Campos@victoribanezc

Víctor Ibáñez Campos - 0 likes
- Steve Clay@steve_clay

Steve Clay - 0 likes
You must log in to post replies.What's the query?
Embed information from a PHP library call "Embed" https://github.com/oscarotero/Embed
Elgg doesn't provide a general purpose cache API, so you'll need to put one in your plugin for now. I'd avoid Stash because you could get version conflicts with core. Cache_Lite (use composer install) is a very old standby.