Jump to content

Facebook Social Plugin Changing default cache exipiry


ricky11

Recommended Posts

Currently the facebook social plugin expires every 20mins, and it unnecessarily short, forcing the server to check fb cdn every 20 mins when a user visits. I am also not sure if this is with async or sycn.

 

how do i change this to 24 hours?

 

 

Facebook developers guide suggest , but i can't find the code below in teh facebook module tpl, js or php file... i think i am looking in the wrong place...

 
<?php
$cache_expire = 60*60*24*365;
header("Pragma: public");
header("Cache-Control: maxage=".$cache_expire);
header('Expires: '.gmdate('D, d M Y H:i:s', time()+$cache_expire).' GMT');
?>
 
 
Any help would be much appreciated, i am sure this would help other users also.
Link to comment
Share on other sites

×
×
  • Create New...