- Timestamp:
- 09/29/2026 12:22:15 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logicanvas-auctions/trunk/src/Notifications/NotificationService.php
r3684440 r3718060 89 89 60, 90 90 static function () use ( $wpdb, $table, $award_id ) { 91 wp_cache_get( 'wcap_db', QueryCache::GROUP ); 92 return $wpdb->get_row( 91 $cache_key = 'wcap_db_local'; 92 wp_cache_get( $cache_key, QueryCache::GROUP ); 93 $_result = $wpdb->get_row( 93 94 $wpdb->prepare( 94 95 'SELECT * FROM %i WHERE id = %d', … … 98 99 ARRAY_A 99 100 ); 101 wp_cache_set( $cache_key, $_result, QueryCache::GROUP, 30 ); 102 return $_result; 100 103 } 101 104 ); … … 158 161 120, 159 162 static function () use ( $wpdb, $table, $user_id, $event ) { 160 wp_cache_get( 'wcap_db', QueryCache::GROUP ); 161 return $wpdb->get_var( 163 $cache_key = 'wcap_db_local'; 164 wp_cache_get( $cache_key, QueryCache::GROUP ); 165 $_result = $wpdb->get_var( 162 166 $wpdb->prepare( 163 167 'SELECT enabled FROM %i WHERE user_id = %d AND event_key = %s', … … 167 171 ) 168 172 ); 173 wp_cache_set( $cache_key, $_result, QueryCache::GROUP, 30 ); 174 return $_result; 169 175 } 170 176 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)