ricky11 Posted September 22, 2014 Share Posted September 22, 2014 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 More sharing options...
duredo Posted September 22, 2014 Share Posted September 22, 2014 you can't edit external source code, its okay to ignore this expired cache things Link to comment Share on other sites More sharing options...
ricky11 Posted September 23, 2014 Author Share Posted September 23, 2014 I want the facebook social plugin to maintain a longer expiry rather than the default 20 mins, surely there must be a way to do this in the prestashop module or editing the htaccess file? Link to comment Share on other sites More sharing options...
duredo Posted September 23, 2014 Share Posted September 23, 2014 You have no control over them because they are hosted by facebook. use inspect element to see where the source is. example source on my site: http://connect.facebook.net/id/all.js Link to comment Share on other sites More sharing options...
Recommended Posts