If you look at the mod install script, you will see that it only adds code that includes list_new_unreads() once in search.php, so if that code appears twice in your search.php you have done something wrong. What version of keep unread are you using?Lusch wrote:Can someone explain to me what the function `list_new_unreads` does?
I noticed that this function is called twice in search.php! When I comment one of the two out the load time of search.php becomes twice as fast.
Maybe you are talking about the fact that it gets called in search.php and also gets called in page_header.php?? A few versions ago I changed the page_header.php code to skip list_new_unreads if it had already been called by index.php, but I have no idea whether I did that for when it has already been called in search.php. I can check later on, but maybe you can clarify what exactly you are talking about.