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: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.