• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

When a topic in the cache needs to be updated the onReload() handler is called but the _onReload() method is to be called instead which then calls the onReload() method (mind the underscore). The _onReload() handler is the default handler of the DBCacheContrib::WebDB base class that grants that a minimun stuff is done in any case...like setting the _up relation. So the _up relation was set only the first time the cache was created but not when a topic in it needed to be updated (using _updateCache() ) .

A one-char fix:

--- lib/TWiki/Contrib/DBCacheContrib.pm (revision 8675)
+++ lib/TWiki/Contrib/DBCacheContrib.pm (working copy)
@@ -378,7 +378,7 @@

     if ( $readFromFile || $removed ) {
         # refresh relations
-        $this->onReload( \@readTopic );
+        $this->_onReload( \@readTopic );

     return ( $readFromCache, $readFromFile, $removed );

Fixed in SVN 8682.


Summary _up relation not set
ReportedBy TWiki:Main.MichaelDaum

SVN Range Sun, 29 Jan 2006 build 8586
AppliesTo Extension
Component DBCacheContrib
Priority Urgent
CurrentState Closed

Checkins 8682
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2006-02-03 - MichaelDaum
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback