From 5be85b9bed8617450cb154656021b891c7cca1f8 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 9 May 2010 18:10:21 -0700 Subject: [PATCH] Cache update for a test --- t/Asset/Wobject/Survey.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/Asset/Wobject/Survey.t b/t/Asset/Wobject/Survey.t index 71581c481..481dddb0e 100644 --- a/t/Asset/Wobject/Survey.t +++ b/t/Asset/Wobject/Survey.t @@ -210,7 +210,7 @@ cmp_deeply(from_json($surveyEnd), { type => 'forward', url => '/getting_started' # Push revisionDate into the past because we can't have 2 revision dates with the same epoch (this is very hacky) $revisionDate--; $session->stow->deleteAll(); - WebGUI::Cache->new($session)->flush; + $session->cache->clear; $session->db->write('update Survey set revisionDate = ? where assetId = ?', [$revisionDate, $surveyId]); $session->db->write('update assetData set revisionDate = ? where assetId = ?', [$revisionDate, $surveyId]); $session->db->write('update wobject set revisionDate = ? where assetId = ?', [$revisionDate, $surveyId]);