diff options
author | Dave Blake <oak99sky@yahoo.co.uk> | 2017-01-19 10:30:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 10:30:30 +0000 |
commit | ca4964523dab30da4c36c9c4b64794b24e7d0405 (patch) | |
tree | f28bee9249cc6381353162f9317094703ad12738 | |
parent | 021c336ef8ba1fd6b6785182cb6697f2b0bc86f0 (diff) | |
parent | eda27175c9f7ca5fc34b800888f36f9bbca96810 (diff) |
Merge pull request #11479 from DaveTBlake/CachePluginsKrypton
[Fix]Restore caching for slow plugins
-rw-r--r-- | xbmc/filesystem/PluginDirectory.cpp | 2 | ||||
-rw-r--r-- | xbmc/interfaces/legacy/ModuleXbmcplugin.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/filesystem/PluginDirectory.cpp b/xbmc/filesystem/PluginDirectory.cpp index caff5c36b0..76eaf43174 100644 --- a/xbmc/filesystem/PluginDirectory.cpp +++ b/xbmc/filesystem/PluginDirectory.cpp @@ -227,7 +227,7 @@ void CPluginDirectory::EndOfDirectory(int handle, bool success, bool replaceList return; // set cache to disc - dir->m_listItems->SetCacheToDisc(CFileItemList::CACHE_NEVER); + dir->m_listItems->SetCacheToDisc(cacheToDisc ? CFileItemList::CACHE_IF_SLOW : CFileItemList::CACHE_NEVER); dir->m_success = success; dir->m_listItems->SetReplaceListing(replaceListing); diff --git a/xbmc/interfaces/legacy/ModuleXbmcplugin.h b/xbmc/interfaces/legacy/ModuleXbmcplugin.h index 2237ccd204..081e27bc07 100644 --- a/xbmc/interfaces/legacy/ModuleXbmcplugin.h +++ b/xbmc/interfaces/legacy/ModuleXbmcplugin.h @@ -131,8 +131,8 @@ namespace XBMCAddon /// @param updateListing [opt] bool - True=this folder should /// update the current listing/False=Folder /// is a subfolder(Default). - /// @param cacheToDisc [opt] bool - True=Allow folder to be cached - /// (default)/False=this folder + /// @param cacheToDisc [opt] bool - True=Folder will cache if + /// extended time(default)/False=this folder /// will never cache to disc. /// /// |