From: Marc-Etienne V. <Mar...@al...> - 2008-04-11 15:32:48
|
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, Mar...@al... | | /'| ' | ================================================================== \ |/ / | L'essence des Mathématiques est dans leur liberté. | \ / | Georges Cantor | ------ ================================================================== |