Caches Twitter avatars used by the Twitter Tracker widgets to avoid using the Twitter API, which sets cookies. This is inline with new directives from the UK government to reduce unnecessary cookie usage, following European legislation on this subject.
In order to maintain site performance, the plugin does not fetch and cache the images during the rendering of the page, instead it spins off a separate operation using the built-in WordPress cache. One slight disadvantage of this approach is that the first time a new Twitter avatar is encountered it can take around a minute for it to be available.
Filters and actions
These notes mainly for developers:
tt_max_cache_count filter – Use this to influence the total number of avatars the plugin will cache at any one time. If you return false or zero (0) then the number of items is unlimited. Keep in mind that an unlimited cache will continue to grow forever as new avatars are required by a Twitter profile or search widget, so you'll need to be sure you've got the disk space if you choose this option (or simply manually clean it out periodically).
- First release!