[dokuwiki] Re: RSS feed tweaks

  • From: "Joe Lapp" <joe.lapp@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 11 Sep 2005 21:56:08 -0500 (CDT)

When $conf['useheader'] is set and RSS is pulling out a page's first header:

>         $heading = p_get_first_heading($id);

This line only gets the header if it's sitting in cache.  If the pages haven't 
been visited since the last cache clearing, no header is available to the RSS 
feed.

Anyone mind if I instead use preg_match() to snag the first <h*> on the page?  
Or should p_get_first_heading() be changed to cache the instructions if they 
don't already exist?  (And if the latter, how do I do that?)

Thanks!
~joe
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: