Deleting pages

Marc-Etienne Vargenau <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Organization Alcatel-Lucent (CTO/RDEI/SRA)
Message-ID <[email protected]>
Hello,

Another question.

I have implemented a "real" remove item in menu for pages by using
the purgePage function in WikiDB.php (instead of deletePage).

It works, but it is VERY slow (might be 2 minutes to delete a page).

Trying to debug the reason for this slowness we found the following.

The time is mostly spent is the following lines that seem useless:

   $this->_update_recent_table();
   $this->_update_nonempty_table();

You removed these lines here:

http://phpwiki.cvs.sourceforge.net/phpwiki/phpwiki/lib/WikiDB/backend/ADODB.php?r1=1.61&r2=1.62

in file lib/WikiDB/backend/ADODB.php

We are using "PearDB.php"

Is it safe to delete these two lines in purge_page function in
file lib/WikiDB/backend/PearDB.php ?

Thank you for your help.

Best regards,

Marc-Etienne

-- 
==================================================================    ------
| Marc-Etienne Vargenau                                          |   /      \
| Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE |  /  /|'`  \
| +33 (0)1 30 77 28 33, [email protected]  | |  /'| '   |
==================================================================  \   |/   /
| L'essence des Mathématiques est dans leur liberté.             |   \      /
|                                Georges Cantor                  |    ------
==================================================================

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.