Changeset 21996 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 09/25/2012 05:26:19 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/dashboard.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r21944 r21996 917 917 if ( false === $plugin_slugs = get_transient( 'plugin_slugs' ) ) { 918 918 $plugin_slugs = array_keys( get_plugins() ); 919 set_transient( 'plugin_slugs', $plugin_slugs, 86400);919 set_transient( 'plugin_slugs', $plugin_slugs, DAY_IN_SECONDS ); 920 920 } 921 921 … … 1025 1025 ob_start(); 1026 1026 call_user_func_array( $callback, $args ); 1027 set_transient( $cache_key, ob_get_flush(), 43200); // Default lifetime in cache of 12 hours (same as the feeds)1027 set_transient( $cache_key, ob_get_flush(), 12 * HOUR_IN_SECONDS ); // Default lifetime in cache of 12 hours (same as the feeds) 1028 1028 } 1029 1029 … … 1216 1216 return false; 1217 1217 1218 set_site_transient( 'browser_' . $key, $response, 604800 ); // cache for 1 week1218 set_site_transient( 'browser_' . $key, $response, WEEK_IN_SECONDS ); 1219 1219 } 1220 1220
Note: See TracChangeset
for help on using the changeset viewer.