MyBB Threadcache
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #5
RE: MyBB Threadcache
Thanks Omar, I have been looking at the hooks and trying to figure it out and did try forumdisplay_get_threads but no result.

It does seem indeed that I need to add two functions; one at forumdisplay_start (maybe) or in get_threads and then another in forumdisplay_thread. I have had a look at a couple of plugins that use a cache, but they so far they all seem to actually query on every thread on the page (so not what I saw as a cache).

Not giving up, but still a bit confused on which point of the hook the code works on.

For example, get threads starts the foreach for thread cache

Code:
foreach($threadcache as $thread)
	{
		$plugins->run_hooks("forumdisplay_thread");


So If I use that hook is my code already part of the foreach loop?



[Image: leelink.gif]
MYBB1.6 & XThreads
02-27-2015 08:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
MyBB Threadcache - leefish - 02-22-2015, 11:54 AM
RE: MyBB Threadcache - ZiNgA BuRgA - 02-23-2015, 04:44 PM
RE: MyBB Threadcache - leefish - 02-25-2015, 02:22 PM
RE: MyBB Threadcache - Sama34 - 02-27-2015, 04:08 PM
RE: MyBB Threadcache - leefish - 02-27-2015 08:20 PM
RE: MyBB Threadcache - ZiNgA BuRgA - 02-27-2015, 08:37 PM
RE: MyBB Threadcache - Sama34 - 02-28-2015, 04:48 PM
RE: MyBB Threadcache - leefish - 03-01-2015, 02:20 PM
RE: MyBB Threadcache - ZiNgA BuRgA - 03-01-2015, 05:23 PM
RE: MyBB Threadcache - Sama34 - 03-02-2015, 06:52 AM

 Standard Tools
Forum Jump: