[dokuwiki] Re: Recent changes & import update

Ben Coburn wrote:

On Oct 23, 2006, at 3:01 PM, Guy Brand wrote:

On 23 October at 11:30, Ben Coburn wrote:

I'll look into changing the code for importing the old changelog so
that it puts all the old changes into the recent changes cache. The
changelog trimmer (in the indexer) will then cut the recent changes
cache down to size on the first run. This will also give people a whole
24 hours to set $conf['recent_days'] to the "right" value for their
wiki.


  Hmmm, seems I forgot the action of the trimmer which will shrink the
  cache anyway. I don't think having 24 hours to change recent_days is
  a user (or admin) friendly solution. So here is an other scenario to
  keep at least 20 (or whatever $conf['recent'] value is set to)
  entries after importing the changes.


I think you are misunderstanding. The trimmer *already* keeps $conf['recent'] changes in the recent changes cache. This minimum number of changes will be kept no mater what value is given to $conf['recent_days'].



Hmm ... Are you saying that with $conf['recent'] = 20; $conf['recent_days'] = 7; and having only 5 pages changed during the last 7 days, that ?do=recent should *still* be displaying 20 items??

If that is what you meant, then obviously that is not the case ...!?

Anika
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: