Permalink
Browse files

Dual-write last visit timestamp.

  • Loading branch information...
1 parent 7f3f844 commit 555c02ad62d0fb3a7e36739b3d9ce50a3124481e @spladug spladug committed May 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 r2/r2/models/account.py
View
3 r2/r2/models/account.py
@@ -29,6 +29,7 @@
from r2.lib.cache import sgm
from r2.lib import filters
from r2.lib.log import log_text
+from r2.models.last_modified import LastModified
from pylons import c, g, request
from pylons.i18n import _
@@ -222,6 +223,8 @@ def update_last_visit(self, current_time):
(self.name, prev_visit, current_time))
set_last_visit(self)
+ LastModified.touch(self._fullname, "Visit")
+
def make_cookie(self, timestr=None):
if not self._loaded:
self._load()

0 comments on commit 555c02a

Please sign in to comment.