diff --git a/security/Security.php b/security/Security.php index 252a843b7..f9f5af3d9 100644 --- a/security/Security.php +++ b/security/Security.php @@ -450,7 +450,8 @@ class Security extends Controller { $tmpPage = new Page(); $tmpPage->Title = _t('Security.LOSTPASSWORDHEADER', 'Lost Password'); $tmpPage->URLSegment = 'Security'; - $tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children + // Disable ID-based caching of the log-in page by making it a random number + $tmpPage->ID = -1 * rand(1,10000000); $controller = Page_Controller::create($tmpPage); $controller->init(); } else { @@ -512,7 +513,8 @@ class Security extends Controller { $tmpPage = new Page(); $tmpPage->Title = _t('Security.LOSTPASSWORDHEADER'); $tmpPage->URLSegment = 'Security'; - $tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children + // Disable ID-based caching of the log-in page by making it a random number + $tmpPage->ID = -1 * rand(1,10000000); $controller = Page_Controller::create($tmpPage); $controller->init(); } else { @@ -578,7 +580,8 @@ class Security extends Controller { $tmpPage = new Page(); $tmpPage->Title = _t('Security.CHANGEPASSWORDHEADER', 'Change your password'); $tmpPage->URLSegment = 'Security'; - $tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children + // Disable ID-based caching of the log-in page by making it a random number + $tmpPage->ID = -1 * rand(1,10000000); $controller = Page_Controller::create($tmpPage); $controller->init(); } else {