diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index abb618a5b080319b86211c5c3432d25dbcc3a654..0785d4e9acea7ad1e1563be539f46c118b8c2a2f 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -1167,7 +1167,7 @@ void LLShaderMgr::persistShaderCacheMetadata()
 		}
 	}
 
-	std::string meta_out_path = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, "shader_cache", "shaderdata.llsd");
+	std::string meta_out_path = gDirUtilp->add(mShaderCacheDir, "shaderdata.llsd");
 	llofstream outstream(meta_out_path);
 	LLSDSerialize::toNotation(out, outstream);
 	outstream.close();