From 7e4ee01d99e1ae775513f6f26767b457bf7656da Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Wed, 17 Oct 2012 14:18:45 -0500 Subject: add a higher timeout for caching certain objects --- tools/upgrade/1.3/migrate_dbstats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/upgrade/1.3') diff --git a/tools/upgrade/1.3/migrate_dbstats.py b/tools/upgrade/1.3/migrate_dbstats.py index 888abc002..1bde1f0f3 100755 --- a/tools/upgrade/1.3/migrate_dbstats.py +++ b/tools/upgrade/1.3/migrate_dbstats.py @@ -84,7 +84,7 @@ def _migrate_transaction(inter, entries, fperms): unkown_profile = cache.get("PROFILE_UNKNOWN") if not unkown_profile: unkown_profile, created = new_models.Group.objects.get_or_create(name="<>") - cache.set("PROFILE_UNKNOWN", unkown_profile) + cache.set("PROFILE_UNKNOWN", unkown_profile, 60 * 60) newint.profile = unkown_profile groups = [unkown_profile] super(new_models.Interaction, newint).save() -- cgit v1.2.3-1-g7c22