Plugin Directory

Changeset 1333220


Ignore:
Timestamp:
01/21/2016 10:08:17 PM (10 years ago)
Author:
drobertsorg
Message:

Fixed bug in caching setup

Location:
wp-legisearch/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-legisearch/trunk/os-client/WpJsonCacheable.class.php

    r1331856 r1333220  
    2929        $sql = "SELECT * FROM {$this->cacheTableName} WHERE url = '{$url}';";
    3030        $result = $wpdb->get_row( $sql );
    31         if( $wpdb->num_rows == 1 && strtotime( $result->retrieved ) < strtotime( "- {$this->cacheTimeout} hours" ) ) {
     31        if( $wpdb->num_rows > 1 && strtotime( $result->retrieved ) <= strtotime( "- {$this->cacheTimeout} hours" ) ) {
    3232            // Cache match and it's fresh
    3333            return $result->data;
  • wp-legisearch/trunk/readme.txt

    r1333219 r1333220  
    4848= 1.2 =
    4949* API Keys will now save when updating or reactivating plugin
     50* Improved caching of Open States data
    5051
    5152= 1.1 =
Note: See TracChangeset for help on using the changeset viewer.