With caching, all retrieved XRD/JRD files will be stored locally, which leads to faster lookup times when the same identifier (email address) is loaded again.

You should use caching when your application often does WebFinger requests. For older RFC 6415-based webfinger implementations, it reduces the number of HTTP requests to the same server from 2 to 1 for each lookup.

require_once 'Net/WebFinger.php';
$wf = new Net_WebFinger();
Cache('file', array('cache_dir' => sys_get_temp_dir() . '/myapp'))
$react $wf->finger('');
$openIdProvider $react->get('');
Error handling (Previous) Custom HTTP adapters (Next)
Last updated: Wed, 25 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.