function _fb_form_cache_cb in Drupal for Facebook 5.2
Same name and namespace in other branches
- 5 fb.module \_fb_form_cache_cb()
- 6.2 fb.module \_fb_form_cache_cb()
File
- ./
fb.module, line 546
Code
function _fb_form_cache_cb($cid) {
// Facebook started appending a '?', we need to get rid of it.
if ($pos = strpos($cid, '?')) {
$cid = substr($cid, 0, $pos);
}
watchdog('fb', "Returning cached form page {$cid}");
$cache = cache_get($cid, 'cache_page');
// Don't clear, as user may refresh browser. Cache will expire eventually.
// cache_clear_all($cid, 'cache_page');
print $cache->data;
exit;
}