Commit 1afa1414 authored by Shane Hathaway's avatar Shane Hathaway

Updated to use resetCaches, the new name for updateCodeTimestamp.

parent a76325fd
......@@ -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.'
......
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment