Skip to content

Commit

Permalink
Improve comment clarity
Browse files Browse the repository at this point in the history
Co-authored-by: Caleb Burks <[email protected]>
  • Loading branch information
noahtallen and WPprodigy authored Feb 6, 2024
1 parent 511cbd1 commit 09a5189
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/class-events-store.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public static function is_installed(): bool {
$table_name = $wpdb->prefix . self::TABLE_SUFFIX;
$is_installed = 1 === count( $wpdb->get_col( $wpdb->prepare( 'SELECT TABLE_NAME FROM information_schema.tables WHERE TABLE_NAME = %s', $table_name ) ) );

// Cache false for future is_installed checks. Will be overriden by
// _prepare_table when/if it's ultimately installed.
// Cache the results, will be overridden by _prepare_table() during installation.
wp_cache_add( 'is_installed', $is_installed, 'cron-control' );

return $is_installed;
Expand Down

0 comments on commit 09a5189

Please sign in to comment.