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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-12-31 22:34:58 +00:00
parent 67febd9d7a
commit faa30b7898
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')");