WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Wish List (https://www.wowinterface.com/forums/forumdisplay.php?f=15)
-   -   Pre-populated item cache (https://www.wowinterface.com/forums/showthread.php?t=18042)

Thaoky 09-04-08 05:08 AM

Pre-populated item cache
 
We know that the item cache is deleted after every patch, so this suggestion is about providing a pre-populated item cache as part of the patch.

The reason behind this suggestion is that addons like AtlasLoot or like mine (Altoholic), cannot rely on the accuracy of GetItemInfo as the item might not be in the cache. Querying the server to get item information is thus required, and there's a risk of being disconnected if done too often.

For instance, an addon like mine allows the user to find upgrades for his equipment, thus if we assume he's looking at upgrades for level 28 gear, he might potentially find upgrades in gnomeregan.. but if the item id's are unknown, the addon won't return them as potential upgrades.

Thus the idea would be to have a cache that already contains a lot of item id's, obviously not the most recent additions (like the most recent pvp season, or the latest raid dungeon), since I assume Blizzard wants to prevent data mining, but a solid selection of items such as all instance blues & above would certainly help, and would not require any code change in the wow client.

The same idea could be applied to spells, especially those that relate to professions.

jaliborc 09-04-08 06:42 AM

A possibility would be to create a "ItemCache" Library. I think that there's already a Babble lib for items, but I'm not sure...

Thaoky 09-04-08 06:44 AM

Very honestly, if I was sure that the file containing the item cache could be easily interchanged from one machine to another, that's an option I would consider. I'd rather have blizzard provide us with a file automatically though :)

jaliborc 09-04-08 06:45 AM

Oh, sorry, I misunderstood your request.

CobraA1 11-27-11 12:06 AM

+1 on this idea. My addon (Reagent Restocker) is affected by the item cache wipes as well.

Vlad 11-27-11 09:19 AM

What I used to do before was to copy Cache folder and put my old files in it after patch to reapply the cache.

Only down side is when old items update they stayed the same in the tooltips for you, hehe. :P

SDPhantom 11-27-11 01:47 PM

What I've done in an addon I've been developing was go through a list of itemIDs and call GetItemInfo() in the main code. The idea behind this would be to have WoW fetch item data for its cache so it'll be ready when the addon needs it.

Ailae 11-27-11 02:22 PM

The post is from 2008, so is this even a problem now? The cache is wiped between sessions now. I've queried for hundreds of items in quick succession, without being disconnected.

Granted those were all known-to-be valid IDs.

Voyager 12-04-11 12:42 AM

Quote:

Originally Posted by Ailae (Post 247959)
The post is from 2008, so is this even a problem now? The cache is wiped between sessions now. I've queried for hundreds of items in quick succession, without being disconnected.

Granted those were all known-to-be valid IDs.

Yeah, you need to query each item twice to get any results now.


All times are GMT -6. The time now is 04:55 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI