You are here

function _fb_form_cache_cb in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb.module \_fb_form_cache_cb()
  2. 6.2 fb.module \_fb_form_cache_cb()
1 string reference to '_fb_form_cache_cb'
fb_menu in ./fb.module

File

./fb.module, line 474

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;
}