Skip to content

Commit

Permalink
MDL-53425 blocklib: Raise execution time for dashboard reset process
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta authored and David Monllao committed May 30, 2016
1 parent 7c8f4f6 commit 46b888d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions my/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ function my_reset_page($userid, $private=MY_PAGE_PRIVATE, $pagetype='my-index')
function my_reset_page_for_all_users($private = MY_PAGE_PRIVATE, $pagetype = 'my-index') {
global $DB;

// This may take a while. Raise the execution time limit.
core_php_time_limit::raise();

// Find all the user pages.
$where = 'userid IS NOT NULL AND private = :private';
$params = array('private' => $private);
Expand Down

0 comments on commit 46b888d

Please sign in to comment.