Difference between revisions of "Clearing the cache"

From Second Life Wiki
Jump to navigation Jump to search
(→‎Multiple viewers: Reworded, restructured)
 
(8 intermediate revisions by 2 users 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.
 
==Performance improvements==
 
Increase the cache size to its full 1GB size. This will reduce the intervals needed between cleanings.
 
Moving the cache to a second hard drive (if available) can slightly increase textures loading during travel as it creates an array of drives that can be used by multi-core processors to load SIM textures. A 15000 rpm hard drive will of course load the textures faster then a 7200 rpm hard drive.
 
For those with available RAM on their PC. [http://memory.dataram.com/products-and-services/software/ramdisk? RAMDisk] can be used. '''Perhaps only advanced users should attempt this method of improving cache performance due to advanced software installation and drive configuration concerns.
'''
 
== Clearing the cache from within the Second Life Viewer 2==
 
# Choose '''Me''' menu > '''Preferences'''.
# Click '''Setup''' tab.
# Click the '''Reset''' button near '''Cache Location'''.
# After you're prompted, restart the Viewer.
 
==Clearing the Cache from Outside Second Life==
 
'''If you're sure of what you're doing''', you can also clear your 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:Support]] [[Category:Performance]] [[Category:Menus and Controls]] [[Category:Technical Issue]] [[Category:Improving Performance]] [[Category:Troubleshooting]] [[Category:General Second Life Software Information]]

Latest revision as of 08:35, 28 November 2011