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

       Web browser: ---
             Bug #: 35854
           Summary: LCStore_DB cache is not refreshed on action=purge
           Product: MediaWiki
           Version: 1.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Internationalization
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I spent some hour trying to figure out why all of my ResourceLoader module
messages suddenly become unavailable when I just inserted two additional
messages into extension's i18n file. Extension originally used to be
well-working and messages were well-loading.

I introduced a PHP syntax error (typo) in i18n file, however I quickly fixed it
then reload the page, including clearance of Chrome cache, action=purge and
$wgCachePages = false; in LocalSettings.php.

But the extension's messages did not appear back, nothing helped. All of
messages were replaced by default "message key placeholders with ampersands".

After tracing where placeholders are coming from, I figured out that incorrect
empty messages were cached by instance of LCStore_DB, created in constructor of
LocalisationCache class:

        $this->store = new $storeClass( $storeConf );

The further code was suggesting to switch to LCStore_CDB instead. So I've added
the following line into LocalSettings.php:

$wgCacheDirectory = "$IP/cache";

and just after defining $wgCacheDirectory and simple Ctrl+R in Chrome, all of
my ResourceLoader messages, including newly added ones, appeared at
client-side, available in mw.msg()

I guess there is some bug in LCStore_CDB because messages file was properly
corrected, however the $this->store state was not refreshed.

But the most disappointing is that action=purge did refresh message cache.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to