Default expiration is too long. Change it to 15 minutes.

git-svn-id: https://develop.svn.wordpress.org/trunk@3386 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-12-31 22:34:58 +00:00
parent e631d34d50
commit 946cae67f4
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ define('CACHE_SERIAL_FOOTER', "\n?".">");
class WP_Object_Cache {
var $cache_dir;
var $cache_enabled = false;
var $expiration_time = 86400;
var $expiration_time = 900;
var $flock_filename = 'wp_object_cache.lock';
var $cache = array ();
var $dirty_objects = array ();

View File

@ -121,7 +121,7 @@ function wp_insert_post($postarr = array()) {
if ($update) {
$wpdb->query(
"UPDATE $wpdb->posts SET
"UPDATE IGNORE $wpdb->posts SET
post_author = '$post_author',
post_date = '$post_date',
post_date_gmt = '$post_date_gmt',
@ -143,7 +143,7 @@ function wp_insert_post($postarr = array()) {
WHERE ID = $post_ID");
} else {
$wpdb->query(
"INSERT INTO $wpdb->posts
"INSERT IGNORE INTO $wpdb->posts
(post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type)
VALUES
('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type')");