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
1afa1414
Commit
1afa1414
authored
Dec 10, 2003
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to use resetCaches, the new name for updateCodeTimestamp.
parent
a76325fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/python/App/Product.py
lib/python/App/Product.py
+1
-1
lib/python/App/RefreshFuncs.py
lib/python/App/RefreshFuncs.py
+2
-2
No files found.
lib/python/App/Product.py
View file @
1afa1414
...
...
@@ -386,7 +386,7 @@ class Product(Folder, PermissionManager):
message
=
None
if
RefreshFuncs
.
performFullRefresh
(
self
.
_p_jar
,
self
.
id
):
from
ZODB
import
Connection
Connection
.
updateCodeTimestamp
()
# Clears cache in next connection
.
Connection
.
resetCaches
()
# Clears cache in future connections
.
message
=
'Product refreshed.'
else
:
message
=
'An exception occurred.'
...
...
lib/python/App/RefreshFuncs.py
View file @
1afa1414
...
...
@@ -12,7 +12,7 @@
##############################################################################
'''
Functions for refreshing products.
$Id: RefreshFuncs.py,v 1.
6 2002/08/14 21:31:40 mj
Exp $
$Id: RefreshFuncs.py,v 1.
7 2003/12/10 20:03:03 shane
Exp $
'''
import
os
,
sys
...
...
@@ -318,7 +318,7 @@ def autoRefresh(jar):
if
auto_refresh_ids
:
finishAutoRefresh
(
jar
,
auto_refresh_ids
)
from
ZODB
import
Connection
Connection
.
updateCodeTimestamp
()
Connection
.
resetCaches
()
get_transaction
().
commit
()
jar
.
_resetCache
()
get_transaction
().
begin
()
...
...
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