Clear theme cache after editing. Reduce default cache persistence to 1800. (Could go lower.) see #20331.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2012-03-30 14:39:05 +00:00
parent 9305155baf
commit 70aa7f9607
3 changed files with 7 additions and 4 deletions

View File

@@ -351,10 +351,9 @@ function search_theme_directories( $force = false ) {
return $found_themes;
}
if ( ! is_int( $cache_expiration ) )
$cache_expiration = 7200;
$cache_expiration = 1800; // half hour
} else {
// Two hours is the default.
$cache_expiration = 7200;
$cache_expiration = 1800; // half hour
}
/* Loop the registered theme directories and extract all themes */