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
93134a64
Commit
93134a64
authored
May 23, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with tabs after performing cache operations.
parent
23e1cea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
lib/python/App/CacheManager.py
lib/python/App/CacheManager.py
+17
-7
No files found.
lib/python/App/CacheManager.py
View file @
93134a64
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Cache management support
$Id: CacheManager.py,v 1.1
7 2000/05/11 18:54:13 jim
Exp $'''
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
$Id: CacheManager.py,v 1.1
8 2000/05/23 15:38:43 brian
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
import
Globals
,
time
,
sys
...
...
@@ -142,14 +142,17 @@ class CacheManager:
self
.
_cache_age
=
value
self
.
_p_jar
.
db
().
setCacheDeactivateAfter
(
value
)
return
self
.
manage_cacheParameters
(
self
,
REQUEST
)
if
REQUEST
is
not
None
:
response
=
REQUEST
[
'RESPONSE'
]
response
.
redirect
(
REQUEST
[
'URL1'
]
+
'/manage_cacheParameters'
)
def
cache_size
(
self
):
try
:
if
self
.
_p_jar
.
getVersion
():
return
self
.
_vcache_size
except
:
pass
return
self
.
_cache_size
def
manage_cache_size
(
self
,
value
,
REQUEST
):
...
...
@@ -171,7 +174,10 @@ class CacheManager:
self
.
_cache_size
=
value
self
.
_p_jar
.
db
().
setCacheSize
(
value
)
return
self
.
manage_cacheParameters
(
self
,
REQUEST
)
if
REQUEST
is
not
None
:
response
=
REQUEST
[
'RESPONSE'
]
response
.
redirect
(
REQUEST
[
'URL1'
]
+
'/manage_cacheParameters'
)
def
cacheStatistics
(
self
):
try
:
return
self
.
_p_jar
.
db
().
cacheStatistics
()
...
...
@@ -218,7 +224,9 @@ class CacheManager:
Globals
.
Bobobase
.
_jar
.
cache
.
full_sweep
(
value
)
else
:
db
.
cacheFullSweep
(
value
)
return
self
.
manage_cacheGC
(
self
,
REQUEST
)
if
REQUEST
is
not
None
:
response
=
REQUEST
[
'RESPONSE'
]
response
.
redirect
(
REQUEST
[
'URL1'
]
+
'/manage_cacheGC'
)
def
manage_minimize
(
self
,
value
,
REQUEST
):
"Perform a full sweep through the cache"
...
...
@@ -228,7 +236,9 @@ class CacheManager:
Globals
.
Bobobase
.
_jar
.
cache
.
minimize
(
value
)
else
:
db
.
cacheMinimize
(
value
)
return
self
.
manage_cacheGC
(
self
,
REQUEST
)
if
REQUEST
is
not
None
:
response
=
REQUEST
[
'RESPONSE'
]
response
.
redirect
(
REQUEST
[
'URL1'
]
+
'/manage_cacheGC'
)
def
initialize_cache
(
self
):
try
:
db
=
self
.
_p_jar
.
db
()
...
...
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