diff --git a/src/XrdApps/XrdClJCachePlugin/README.md b/src/XrdApps/XrdClJCachePlugin/README.md index e4b6f7c1b6d..bdae4fa51b0 100644 --- a/src/XrdApps/XrdClJCachePlugin/README.md +++ b/src/XrdApps/XrdClJCachePlugin/README.md @@ -30,7 +30,8 @@ vector = false journal = true summary = true size = 0 -json = ./ +json = + ``` ```cache``` points to a local or shared directory where accessed files are stored. This directory has to exist and the configuration path should be terminated with a '/'. @@ -38,7 +39,7 @@ json = ./ > By default JCache prints a summary at application exit. If you don't want the summary set ```summary = false```. > [!TIP] -> By default JCache writes a JSON summary file into the current working directory. If you want to change the directory where json summaries are stored change ```json = /tmp/```. If you don't want any json summary file set it to an empty string. The name of the json summary file is ```jcache.env{"XRD_APPNAME"}:"none".{pid}.json``` +> By default JCache does not write a JSON summary. If you want JSON summaries define a directory whare stored change ```json = /tmp/```. If you don't want any json summary file use the defualt or set it to an empty string. The name of the json summary file is ```jcache.env{"XRD_APPNAME"}:"none".{pid}.json``` > [!NOTE] > The easiest way to verifyt the plug-in functionning is to run with ```XRD_LOGLEVEL=Info``` since the plug-in will provide diff --git a/src/XrdApps/XrdClJCachePlugin/file/XrdClJCacheFile.cc b/src/XrdApps/XrdClJCachePlugin/file/XrdClJCacheFile.cc index f942b882903..a43bad5a4e0 100644 --- a/src/XrdApps/XrdClJCachePlugin/file/XrdClJCacheFile.cc +++ b/src/XrdApps/XrdClJCachePlugin/file/XrdClJCacheFile.cc @@ -29,7 +29,7 @@ /*----------------------------------------------------------------------------*/ std::string XrdCl::JCacheFile::sCachePath = ""; -std::string XrdCl::JCacheFile::sJsonPath = "./"; +std::string XrdCl::JCacheFile::sJsonPath = ""; bool XrdCl::JCacheFile::sEnableJournalCache = true; bool XrdCl::JCacheFile::sEnableVectorCache = false; bool XrdCl::JCacheFile::sEnableSummary = true; diff --git a/src/XrdApps/XrdClJCachePlugin/plugin/XrdClJCachePlugin.hh b/src/XrdApps/XrdClJCachePlugin/plugin/XrdClJCachePlugin.hh index 11ba5afff2a..b5c01a254d5 100644 --- a/src/XrdApps/XrdClJCachePlugin/plugin/XrdClJCachePlugin.hh +++ b/src/XrdApps/XrdClJCachePlugin/plugin/XrdClJCachePlugin.hh @@ -60,7 +60,7 @@ public: JCacheFile::SetJournal(itj != config->end() ? itj->second == "true" : true); auto itjson = config->find("json"); - JCacheFile::SetJsonPath(itjson != config->end() ? itjson->second : "./"); + JCacheFile::SetJsonPath(itjson != config->end() ? itjson->second : ""); auto its = config->find("summary"); JCacheFile::SetSummary(its != config->end() ? its->second == "true"