diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2013-05-28 18:25:12 -0600 | 
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2013-05-28 18:25:12 -0600 | 
| commit | 52e8b2a1a279e13a39a95b32a301780998b8d8c4 (patch) | |
| tree | 3d75f772a733144478c610ee54f463337e618964 /indra | |
| parent | e4e01ea7cce42ca5eac28ceff2b111e52dfd939b (diff) | |
for SH-4004: interesting: need debug option to clear viewer cache while still logged in
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llappviewer.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/lltexturecache.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/lltexturecache.h | 2 | 
3 files changed, 4 insertions, 4 deletions
| diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d36c33cdd7..a602f0d78e 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -4031,7 +4031,7 @@ void LLAppViewer::purgeCache()  void LLAppViewer::purgeCacheImmediate()  {  	LL_INFOS("AppCache") << "Purging Object Cache and Texture Cache immediately..." << LL_ENDL; -	LLAppViewer::getTextureCache()->purgeCache(LL_PATH_CACHE); +	LLAppViewer::getTextureCache()->purgeCache(LL_PATH_CACHE, false);  	LLVOCache::getInstance()->removeCache(LL_PATH_CACHE, true);  } diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index 305f6fca0f..f03cc22949 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -919,7 +919,7 @@ void LLTextureCache::setDirNames(ELLPath location)  	mFastCacheFileName =  gDirUtilp->getExpandedFilename(location, textures_dirname, fast_cache_filename);  } -void LLTextureCache::purgeCache(ELLPath location) +void LLTextureCache::purgeCache(ELLPath location, bool remove_dir)  {  	LLMutexLock lock(&mHeaderMutex); @@ -945,7 +945,7 @@ void LLTextureCache::purgeCache(ELLPath location)  	}  	//remove the current texture cache. -	purgeAllTextures(true); +	purgeAllTextures(remove_dir);  }  //is called in the main thread before initCache(...) is called. diff --git a/indra/newview/lltexturecache.h b/indra/newview/lltexturecache.h index e3fc957fd2..5a68c31a6d 100644 --- a/indra/newview/lltexturecache.h +++ b/indra/newview/lltexturecache.h @@ -104,7 +104,7 @@ public:  	/*virtual*/ S32 update(F32 max_time_ms);	 -	void purgeCache(ELLPath location); +	void purgeCache(ELLPath location, bool remove_dir = true);  	void setReadOnly(BOOL read_only) ;  	S64 initCache(ELLPath location, S64 maxsize, BOOL texture_cache_mismatch); | 
