https://bugzilla.wikimedia.org/show_bug.cgi?id=59941

       Web browser: ---
            Bug ID: 59941
           Summary: Flow: in default config posts don't appear
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Flow
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: sp...@wikimedia.org
                CC: ebernhard...@wikimedia.org, oke...@wikimedia.org,
                    pandiculat...@gmail.com,
                    shahyar+wmfbugzi...@gmail.com, sp...@wikimedia.org,
                    wctai...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

If you add Flow to MediaWiki-Vagrant, and do no other configuration, you can
add topics and posts, but when you later redisplay a topic, e.g. click its
permalink icon, you don't see any of its posts!  Shahyar, wctaiwan and I all
discovered this.

The post does show up in the topic history and the post text is in the
flow_revision table, so this is probably a caching issue.  Setting
$wgFlowUseMemcache = false fixes it (I think it makes Flow use HashBagOStuff).
So maybe false should be Flow's default, and overridden by a WMF wmf-config
setting.

Another wrinkle is MediaWiki-Vagrant does enable a cache, but it is
$wgMainCacheType = 'redis'.  So $wgFlowUseMemcache = true should work, since it
makes Flow use $wgMemc that ends up being RedisBagOStuff.  I'm not sure why
it's failing.

Maybe Flow should be flexible and have a $wgFlowCacheType that defaults to
CACHE_ANYTHING or CACHE_MEMCACHE, the way system caches like $wgParserCache do.
 Or it could use $wgMemc all the time, since that misnamed function always does
something: it'll use MemcachedPhpBagOStuff or RedisBagOStuff if they're
configured, otherwise it falls back to EmptyBagOStuff (dummy cache).

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to