Web browser: ---
            Bug ID: 60152
           Summary: Flow: avoiding cache bugs
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Flow
    Classification: Unclassified
   Mobile Platform: ---

bug 59884 was caused by the typo:

  $pathKey = wfForeignMemcKey( 'flow', '', 'tree', 'rootpath',
$descendant->getHex() );
    $cacheKeys[$descendant->getHex()] = wfForeignMemcKey( 'flow', 'tree',
'rootpath', $descendant->getHex() );

The initial conclusion was
* write caching tests that would fail in this case with "Item should be in

But we could avoid the bug by: 
* eliminate typo by using a constant for the cache key.
**  add a class method to generate the cache key.
***   have a high-level class implement cacheThis => true

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to