Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
b2a48f3e
Commit
b2a48f3e
authored
Jul 13, 2017
by
Guus der Kinderen
Committed by
daryl herzmann
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1365: Don't allow caches that do not expire to be purged. (#839)
parent
90962bc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
system-cache.jsp
src/web/system-cache.jsp
+7
-1
No files found.
src/web/system-cache.jsp
View file @
b2a48f3e
...
...
@@ -198,6 +198,8 @@
hitPercent
=
percentFormat
.
format
(
hitValue
)
+
"%"
;
lowEffec
=
(
hits
>
500
&&
hitValue
<
85.0
&&
freeMem
<
20.0
);
}
// OF-1365: Don't allow caches that do not expire to be purged. Many of these caches store data that cannot be recovered again.
final
boolean
canPurge
=
cache
.
getMaxLifetime
()
>
-
1
;
%>
<tr
class=
"
<%=
(
lowEffec
?
"jive-error"
:
""
)
%>
"
>
<td
class=
"c1"
>
...
...
@@ -229,7 +231,11 @@
<%=
hitPercent
%>
</td>
<td
width=
"1%"
class=
"c5"
><input
type=
"checkbox"
name=
"cacheID"
value=
"
<%=
i
%>
"
onclick=
"updateControls(this.form);toggleHighlight(this);"
></td>
<td
width=
"1%"
class=
"c5"
>
<%
if
(
canPurge
)
{
%>
<input
type=
"checkbox"
name=
"cacheID"
value=
"
<%=
i
%>
"
onclick=
"updateControls(this.form);toggleHighlight(this);"
>
<%
}
%>
</td>
</tr>
<%
}
%>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment