Commit 5dad0e1f authored by sun's avatar sun

#268056 by sun: Fixed incomplete snapshots due to max_execution_time reached.

parent 1f9ba69e
......@@ -6,6 +6,7 @@ Demo x.x-x.x, xxxx-xx-xx
Demo 5.x-1.x, xxxx-xx-xx
------------------------
#268056 by sun: Fixed incomplete snapshots due to max_execution_time reached.
#265801 by smk-ka: Added exclusion of data in cache tables for snapshots.
......
......@@ -245,6 +245,9 @@ function demo_dump_submit($form_id, $values) {
}
require_once drupal_get_path('module', 'demo') ."/database_{$engine}_dump.inc";
// Increase PHP's max_execution_time for large dumps.
@set_time_limit(600);
// Perform dump
$fileconfig = demo_get_fileconfig($info['filename']);
$exclude = array('{cache}', '{cache_content}', '{cache_filter}', '{cache_menu}', '{cache_page}', '{cache_views}', '{panels_object_cache}', '{watchdog}');
......@@ -265,6 +268,9 @@ function demo_reset_confirm() {
}
function demo_reset_confirm_submit($form_id, $values) {
// Increase PHP's max_execution_time for large dumps.
@set_time_limit(600);
// Reset site to chosen snapshot
demo_reset($values['filename']);
// Save time of last reset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment