[pmwiki-users] RSS Feed Performance Problem?
Sebastian Siedentopf
schlaefer at macnews.de
Wed Apr 5 09:01:57 CDT 2006
Am 05.04.2006 um 14:04 schrieb Patrick R. Michaud:
> On Wed, Apr 05, 2006 at 01:43:23PM +0200, Sebastian Siedentopf wrote:
>> It seems when HandleFeed() calls MakePageList() the latter function
>> doesn't make use of the max rss items parameter "count". So
>> MakePageLists() processes several thousand pages from the
>> AllRecentChangesPages for example.
>>
>> Shouldn't it read something like this in MakePageList()
>>
>> if (@$opt['trail']) {
>> ...
>> foreach($trail as $tstop) {
>> ...
>> if (count($list) == @$opt['count']) break;
>> }
>> }
>
> Not really, because we want to apply 'count=' after all other
> criteria have been computed. For example, with
>
> (:pagelist trail=SomeTrail order=-time count=10:)
Ok, I clearly see the issue with (:pagelist:) and that it is usefull
to have the abiltiy to do something like ?action=rss&order=-
time&count=10 and that it is elegant to handle this by the pagelist
code.
One one hand I think most people use feeds to be informed about
updates of a particular group or wiki and subscribe to the
RecentChanges. Of all feeds the one for the masses is the one
consuming a fair amount of "unnecessary" processor power is an idea
I'm not comfortable with.
On the other hand I would agree that for the most PmWiki users with
non high traffic sites and only a few hundred pages the current
implementation is fine.
Sebastian
More information about the pmwiki-users
mailing list