Enhanced caching for MTIcon

Posted by Victor on January 12, 2004

I have commited to SVN an improvement to the caching system of MTIcon. Now it uses MT::PluginData for storage, which is a table in the MT system designed for plugins to store their own data.

Also, now it also caches unsuccesful icon retrievals, which means that every URL will only be scanned once trying to find a shortcut reference. Even if it is not found, MTIcon will remember the URL and never ask for it again, unless you delete the specific row pointing to that URL (is very easy to spot if you need to) in the mt_plugindata table.

Since I want to make another change prior to the 0.8 release, you might get it from http://slunj.carotena.net/cgi-bin/viewcvs.cgi/ trunk/mticon/extlib/MTPlugins/icon.pm if you want to try it. Just download icon.pm and copy it in extlib/MTPlugins/icon.pm. You need to do no further changes (supposing you are already using a version newer than 0.5)