Plugin Directory

Changeset 473700


Ignore:
Timestamp:
12/12/2011 01:05:55 AM (14 years ago)
Author:
mattrude
Message:

correct wp_cache setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • top-posts-pages-widget/trunk/top_posts_n_pages.php

    r473696 r473700  
    2626  function widget($args, $instance) {
    2727    extract($args);
     28    global $blog_id;
    2829    $tpp_widget_title = strip_tags($instance['widget_title']);
    2930    $tpp_number_of_posts = strip_tags($instance['number_of_posts']);
     
    5354      if ( false == $top_posts ) {
    5455        $top_posts = stats_get_csv('postviews', "days=7&limit=50" );
    55         wp_cache_set( 'stats_get_csv', $top_posts );
     56        wp_cache_set( 'stats_get_csv', $top_posts,$blog_id,'1800' );
    5657      }
    57      
    5858      $pn = 1;
    5959      foreach( $top_posts as $posts ) :
Note: See TracChangeset for help on using the changeset viewer.