PDA

View Full Version : How to cache a query in a plugin


mescalin
08-21-2011, 05:58 PM
Hello,

I have a custom plugin and it runs a "$vbulletin->db->query_read" query. However i would like to cache this result for 30seconds. if cache expired when we hit the page it will run the querry and update the cache.

i use memcache with vbulletin. anybody knows how to do that?

thanks..

kh99
08-21-2011, 07:08 PM
This article might help: https://vborg.vbsupport.ru/showthread.php?t=248543

mescalin
08-22-2011, 12:02 AM
thanks a lot. i was looking for smth like that.