Skip to content

Commit

Permalink
Re-enable settings cache after news schema check.
Browse files Browse the repository at this point in the history
Fix a copy/paste typo that's been in place for a couple year and that left
the settings cache disabled after the MythNews DB schema check.  This wasn't
usually visible because anyone who had any "later-in-the-alphabet" plugin
installed (such as MythWeather or MythVideo) would have their settings cache
re-enabled by the later plugin's schema check.  However, now that the
MythVideo schema is in core schema (and so no MythVideo schema check is done),
users without MythWeather would have seen slowness until they forced the
settings cache to re-enable (such as by going through any settings pages).

Thanks to Greg Estabrooks for noticing.
(cherry picked from commit 6f63367)
  • Loading branch information
sphery committed Jan 23, 2011
1 parent 7af55a6 commit bebb13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythplugins/mythnews/mythnews/main.cpp
Expand Up @@ -69,7 +69,7 @@ int mythplugin_init(const char *libversion)
"Couldn't upgrade database to new schema, exiting.");
return -1;
}
gCoreContext->ActivateSettingsCache(false);
gCoreContext->ActivateSettingsCache(true);

setupKeys();

Expand Down

0 comments on commit bebb13b

Please sign in to comment.