Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Stud.IP
Commits
7a3b481c
There was a problem fetching the pipeline summary.
Commit
7a3b481c
authored
Aug 5, 2022
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
disable opcache (for this request) when updating plugin, fixes
#569
Closes
#569
Merge request
!866
parent
97c83785
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!866
disable opcache (for this request) when updating plugin, fixes #569
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/classes/PluginAdministration.php
+3
-4
3 additions, 4 deletions
lib/classes/PluginAdministration.php
with
3 additions
and
4 deletions
lib/classes/PluginAdministration.php
+
3
−
4
View file @
7a3b481c
...
@@ -100,6 +100,9 @@ class PluginAdministration
...
@@ -100,6 +100,9 @@ class PluginAdministration
rmdirr
(
$plugindir_old
);
rmdirr
(
$plugindir_old
);
rename
(
$plugindir
,
$plugindir_old
);
rename
(
$plugindir
,
$plugindir_old
);
}
}
// avoid loading old version of the class from opcache (see ticket #569)
ini_set
(
'opcache.enable'
,
0
);
}
}
// move directory to final destination
// move directory to final destination
...
@@ -119,10 +122,6 @@ class PluginAdministration
...
@@ -119,10 +122,6 @@ class PluginAdministration
rename
(
$tmpplugindir
,
$plugindir
);
rename
(
$tmpplugindir
,
$plugindir
);
// wait until opcache.revalidate_freq expires
$revalidate_freq
=
min
(
ini_get
(
'opcache.revalidate_freq'
),
10
);
sleep
(
$revalidate_freq
);
// create database schema if needed
// create database schema if needed
$this
->
createDBSchema
(
$plugindir
,
$manifest
,
$pluginregistered
);
$this
->
createDBSchema
(
$plugindir
,
$manifest
,
$pluginregistered
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment