You are here

function _fb_form_cache_cb in Drupal for Facebook 6.2

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

File

./fb.module, line 717

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);
  }
  if (fb_verbose() == 'extreme') {
    watchdog('fb', "Returning cached form page {$cid}");

    // debug
  }
  $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;
}