Difference between revisions of "Clearing the cache"

From Second Life Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{KBmaster}}</noinclude>{{Navbox/Cache}} {{Todo|This page would love to be extensively revised, including tightening up sections, fact-checking of technical claims, and improved readability.}} Second Life uses a [http://en.wikipedia.org/wiki/Cache cache], which is a software component that stores data on your hard drive for later retrievel. This speeds up your experience because you no longer need to fetch the data once it's been downloaded the first time. Examples of cached data includes object info, textures, and Inventory item names. Similar in concept to a [http://www.microsoft.com/windows/ie/ie6/using/howto/customizing/clearcache.mspx web browser's cache], clearing the Second Life cache is a "refresh" which can help with various problems. While not a cure-all, it ''is'' a highly-recommended first step for troubleshooting problems.
#REDIRECT [[Troubleshooting common performance problems]]
 
A common problem in Second Life is perceived [http://wiki.secondlife.com/wiki/Inventory_Page_The_Inventory_Recovery_Steps Inventory loss].
, a good name for when you search for something you know was in your inventory but has seemingly disappeared. When you experience [[How do I check for packet loss (network lag)|high packet loss]] "lag", the cache may be corrupt, meaning that when Second Life tries to fetch data that actually ''is'' on the Second Life servers, it's searching for it in your cache, unable to retrieve it.
 
== Further details ==
 
Two major areas are impacted by the cache, travel and inventory. Numerous inventory problems are associated with cache corruption and travel can be slowed by it.
 
Once the cache becomes full it begins a process of "swapping", destroying older downloaded textures to replace with new ones. This process slows rezzing time upon arrival on a sim after teleporting because of the increased work by your computer's hard drive. Clearing the cache can temporarily improve cache performance and rezzing speed.
 
[[https://wiki.secondlife.com/wiki/Why_do_I_look_like_a_particle_cloud|Cloud-like avatars]] is an indication that the cache may be having problems swapping texture files or other associated transitory inventory problems. Missing or corrupted texture data, often giving the appearance of "macroblocks", and items can also at times be repaired by refreshing the cache.
 
Note that initial searching of your inventory is slower after refreshing the cache as your inventory is reloaded and cached. Before and after keep a close eye on the number of items in Inventory. If this is not available click the "recent" items tab to view it there. The larger the inventory the more time it will naturally take to reload it. A very large inventory may take several minutes to completely reload.
 
==Multiple viewers==
 
It is recommended to not use the same cache location for multiple viewers if you currently have more than one installed, because not all Second Life viewers use cached data in the same methods, it can lead to numerous problems. It's possible to designate separate folders if you have more than one Second Life viewer installed. This can be done from settings in the cache "browse" window. The path to this setting in the Second Life Viewer2 is: Me > Preferences  > Setup > Browse, button > Make New Folder, button > create a new name in a new location for the folder.
 
==Improving Cache Performance==
 
Increase the cache size above 1GB. A larger cache means less bandwidth will be used after an initial rez of something. Since v2.8.0 the cache size has been increased up to 10GB. The downside to a larger cache is it will take longer to clean a full cache, should you need to.
 
== Clearing the cache from within Second Life Viewer 2==
 
# Choose '''Me''' menu > '''Preferences'''.
# Click '''Setup''' tab.
# Click the '''Clear Cache''' button near '''Cache Location'''.
# After you're prompted, restart the Viewer.
 
(note that the method has changed from the previous method, as a dedicated Clear Cache button has been added.)
 
==Clearing the Cache from Outside Second Life==
 
'''If you are confident in doing so''', you can also clear the cache manually. With Second Life closed, go to the appropriate pathway and delete all the files inside the "cache" folder. [[User settings|Get more help on where to find these.]]
 
* '''Windows XP''' - <code>C:\Documents and Settings\<username>\Application Data\SecondLife\cache</code>
** Alternatively, use environment variable <code>%APPDATA%</code> to shorten this path to: <code>%APPDATA%/SecondLife/cache</code>
* '''Windows Vista''' - <code>C:\Users\<username>\AppData\Roaming\SecondLife\cache</code>
* '''Windows Vista Home Premium''' - <code>C:\Users\<username>\AppData\Roaming\SecondLife\browser_profile\cache</code>
* '''Windows 7''' - <code>C:\Users\<username>\AppData\Roaming\SecondLife\browser_profile\Cache</code>
* '''Windows 7''' - <code>C:\Users\<username>\AppData\Local\SecondLife\</code> (Viewer version 1.23.5 (136262))
* '''Mac''' - <code>/Users/<username>/Library/Caches/SecondLife</code>
* '''Linux''' - <code>~/.secondlife/cache</code>
 
==Also see==
 
*[https://wiki.secondlife.com/wiki/Texture_cache Texture cache]
*[https://wiki.secondlife.com/wiki/Image_Pipeline Image Pipeline]
*[https://wiki.secondlife.com/wiki/SLDEV_Discussion_-_Texture_Cache_Plan_of_Attack Proposed Cache Improvements (2008)]
*[http://en.wikipedia.org/wiki/User_Datagram_Protocol User Datagram Protocol (UDP)]
 
 
[[Category:Performance]]
[[Category:Controls]]
[[Category:Operating system, hardware, and network]]

Latest revision as of 08:35, 28 November 2011