Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
f60aa9ac
Commit
f60aa9ac
authored
Nov 08, 2009
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include bytes limited cache size in the cache parameters ZMI screen
parent
638f9fef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
26 deletions
+26
-26
doc/CHANGES.rst
doc/CHANGES.rst
+10
-2
src/App/CacheManager.py
src/App/CacheManager.py
+3
-24
src/App/dtml/cacheParameters.dtml
src/App/dtml/cacheParameters.dtml
+13
-0
No files found.
doc/CHANGES.rst
View file @
f60aa9ac
...
...
@@ -8,6 +8,11 @@ file HISTORY.txt.
Zope 2.12.2 (unreleased)
------------------------
Features Added
++++++++++++++
- Include bytes limited cache size in the cache parameters ZMI screen.
Bugs Fixed
++++++++++
...
...
@@ -17,8 +22,8 @@ Bugs Fixed
Zope 2.12.1 (2009/11/02)
------------------------
Bugs Fix
ed
++++++++++
Features Add
ed
++++++++++
++++
- Updated packages:
...
...
@@ -35,6 +40,9 @@ Bugs Fixed
- Refactored Windows Service support to not need or use zopeservice.py
in instances. This makes buildout-based instances work on Windows.
Bugs Fixed
++++++++++
- LP #440490: zopectl fg|adduser|run|debug now work on Windows.
- LP #443005: zopectl stop works once more on Windows.
...
...
src/App/CacheManager.py
View file @
f60aa9ac
...
...
@@ -17,8 +17,6 @@ This class is mixed into the database manager in App.ApplicationManager.
$Id$'''
__version__
=
'$Revision: 1.31 $'
[
11
:
-
2
]
import
time
from
App.class_init
import
InitializeClass
from
App.special_dtml
import
DTMLFile
from
App.ImageFile
import
ImageFile
...
...
@@ -44,6 +42,9 @@ class CacheManager:
def
cache_length
(
self
):
return
self
.
_getDB
().
cacheSize
()
def
cache_length_bytes
(
self
):
return
self
.
_getDB
().
getCacheSizeBytes
()
def
cache_detail_length
(
self
):
return
self
.
_getDB
().
cacheDetailSize
()
...
...
@@ -76,28 +77,6 @@ class CacheManager:
response
=
REQUEST
[
'RESPONSE'
]
response
.
redirect
(
REQUEST
[
'URL1'
]
+
'/manage_cacheParameters'
)
# BoboPOS 2
def
cache_mean_age
(
self
):
import
Globals
# for data
return
Globals
.
Bobobase
.
_jar
.
cache
.
cache_mean_age
/
60.0
# BoboPOS 2
def
cache_mean_deal
(
self
):
import
Globals
# for data
return
Globals
.
Bobobase
.
_jar
.
cache
.
cache_mean_deal
*
60
# BoboPOS 2
def
cache_mean_deac
(
self
):
import
Globals
# for data
return
Globals
.
Bobobase
.
_jar
.
cache
.
cache_mean_deac
*
60
# BoboPOS 2
def
cache_last_gc_time
(
self
):
import
Globals
# for data
t
=
Globals
.
Bobobase
.
_jar
.
cache
.
cache_last_gc_time
return
time
.
asctime
(
time
.
localtime
(
t
))
def
manage_full_sweep
(
self
,
value
,
REQUEST
):
"Perform a full sweep through the cache"
db
=
self
.
_getDB
()
...
...
src/App/dtml/cacheParameters.dtml
View file @
f60aa9ac
...
...
@@ -41,6 +41,19 @@
</td>
</tr>
<tr>
<td align="left">
<div class="form-label">
Target memory size per cache in bytes
</div>
</td>
<td>
<div class="form-text">
&dtml-cache_length_bytes;
</div>
</td>
</tr>
<tr>
<td align="left" colspan=2>
<div class="form-label">
...
...
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