Skip to content
Snippets Groups Projects
Unverified Commit 23a9c98b authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4227 from JediKev/upgrader/flush-cache

upgrader: Flush Cache On Upgrade
parents a4ecbd2f fe34bb24
No related branches found
No related tags found
No related merge requests found
......@@ -362,6 +362,10 @@ class StreamUpgrader extends SetupWizard {
if(!($max_time = ini_get('max_execution_time')))
$max_time = 300; //Apache/IIS defaults.
// Drop any model meta cache to ensure model changes do not cause
// crashes
ModelMeta::flushModelCache();
// Apply up to five patches at a time
foreach (array_slice($patches, 0, 5) as $patch) {
//TODO: check time used vs. max execution - break if need be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment