Changeset 1333220
- Timestamp:
- 01/21/2016 10:08:17 PM (10 years ago)
- Location:
- wp-legisearch/trunk
- Files:
-
- 2 edited
-
os-client/WpJsonCacheable.class.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-legisearch/trunk/os-client/WpJsonCacheable.class.php
r1331856 r1333220 29 29 $sql = "SELECT * FROM {$this->cacheTableName} WHERE url = '{$url}';"; 30 30 $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" ) ) { 32 32 // Cache match and it's fresh 33 33 return $result->data; -
wp-legisearch/trunk/readme.txt
r1333219 r1333220 48 48 = 1.2 = 49 49 * API Keys will now save when updating or reactivating plugin 50 * Improved caching of Open States data 50 51 51 52 = 1.1 =
Note: See TracChangeset
for help on using the changeset viewer.