diff --git a/includes/dpa-common-functions.php b/includes/dpa-common-functions.php index b18559c..0e43257 100644 --- a/includes/dpa-common-functions.php +++ b/includes/dpa-common-functions.php @@ -384,8 +384,8 @@ function dpa_get_supported_plugins() { $plugin->contributors_raw = $plugin->contributors; $plugin->contributors = dpa_supported_plugins_get_contributor_data( $plugin->contributors ); - // Cache data for 72 hours - set_transient( 'dpa_plugin_' . $slug, $plugin, 60 * 60 * 24 * 3 ); + // Cache data for 1 week + set_transient( 'dpa_plugin_' . $slug, $plugin, 60 * 60 * 24 * 7 ); $data = $plugin; } diff --git a/includes/dpa-core-hooks.php b/includes/dpa-core-hooks.php index ef1d309..d1cff2c 100644 --- a/includes/dpa-core-hooks.php +++ b/includes/dpa-core-hooks.php @@ -66,6 +66,9 @@ add_action( 'dpa_activation', 'flush_rewrite_rules' ); add_action( 'dpa_deactivation', 'flush_rewrite_rules' ); +// Cache supported plugins on activation for a good first impression +add_action( 'dpa_activation', 'dpa_get_supported_plugins' ); + // wp-admin stuff if ( is_admin() ) {