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

git-svn-id: https://develop.svn.wordpress.org/trunk@20328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-03-30 14:39:05 +00:00
parent e9c7faff7c
commit 09f946105d
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -94,6 +94,7 @@ case 'update':
fwrite( $f, $newcontent );
fclose( $f );
$location .= '&updated=true';
$theme->cache_delete();
}
}
wp_redirect( $location );