diff --git a/Engine/AppManager.cpp b/Engine/AppManager.cpp index 05be6613d2..32fde4165f 100644 --- a/Engine/AppManager.cpp +++ b/Engine/AppManager.cpp @@ -1098,7 +1098,12 @@ AppManager::loadInternalAfterInitGui(const CLArgs& cl) _imp->restoreCaches(); } - setLoadingStatus( tr("Loading plugin cache...") ); + if (cl.isOpenFXCacheClearRequestedOnLaunch()) { + setLoadingStatus( tr("Clearing the OpenFX Plugins cache...") ); + clearPluginsLoadedCache(); + } else { + setLoadingStatus( tr("Loading plugin cache...") ); + } ///Set host properties after restoring settings since it depends on the host name. diff --git a/Tests/wmain.cpp b/Tests/wmain.cpp index 7abdf160f5..9cf3ccecdd 100755 --- a/Tests/wmain.cpp +++ b/Tests/wmain.cpp @@ -21,6 +21,7 @@ GTEST_API_ int main(int argc, char **argv) int argc = 0; QStringList args; args << QString::fromUtf8("--clear-cache"); + args << QString::fromUtf8("--clear-openfx-cache"); args << QString::fromUtf8("--no-settings"); CLArgs cl(args, true); if (!manager.load(argc, 0, cl)) {