Plugin Directory

Changeset 760742


Ignore:
Timestamp:
08/22/2013 03:23:32 PM (13 years ago)
Author:
livingos
Message:

facebook feed cache set to 6 hrs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themeloom-widgets/trunk/facebook-widget.php

    r760695 r760742  
    2020    public function widget( $args, $instance ) {
    2121   
    22         $pageinfo = livingos_get_fb_page_info( $instance['page_id'], $instance['auth_token'], 3600 );
     22        $pageinfo = livingos_get_fb_page_info( $instance['page_id'], $instance['auth_token'], 21600 );
    2323         
    2424        // outputs the content of the widget
     
    119119 * Get page info
    120120 */
    121 function livingos_get_fb_page_info( $page_id, $auth_token, $cache_expire = 3600 ){
     121function livingos_get_fb_page_info( $page_id, $auth_token, $cache_expire = 21600 ){
    122122   
    123123    //Page info : check cache
     
    146146 * Get page fee
    147147 */
    148 function livingos_get_fb_page_feed( $page_id, $auth_token, $num_posts, $cache_expire = 3600 ){
     148function livingos_get_fb_page_feed( $page_id, $auth_token, $num_posts, $cache_expire = 21600 ){
    149149   
    150150    //Page Feed : check cache
     
    184184        'show_likes' => true,
    185185        'follow_message' => __('Join us on Facebook','livingos'),
    186         'cache_expire' => 60
     186        'cache_expire' => 21600
    187187    );
    188188    $args = wp_parse_args( $args, $defaults );
Note: See TracChangeset for help on using the changeset viewer.