Committer: vsukhanov
LJSUP-9104: move uniqs to global clusterU trunk/cgi-bin/LJ/UniqCookie.pm
Modified: trunk/cgi-bin/LJ/UniqCookie.pm =================================================================== --- trunk/cgi-bin/LJ/UniqCookie.pm 2011-06-15 09:30:42 UTC (rev 19294) +++ trunk/cgi-bin/LJ/UniqCookie.pm 2011-06-15 10:28:38 UTC (rev 19295) @@ -152,8 +152,7 @@ return if $class->is_disabled; my ($uniq, $uid_arg) = @_; # no extra parts, only ident - croak "invalid uniq: $uniq" - unless length $uniq; + return unless length $uniq; my $uid = LJ::want_userid($uid_arg); croak "invalid userid arg: $uid_arg" @@ -379,8 +378,6 @@ sub ensure_cookie_value { my $class = shift; - return; -=head LJSUP-8676: set ljuniq cookie on client side. it allows to cached pages for logged-out users. return unless LJ::is_web_context(); return unless LJ::Request->is_inited; @@ -403,6 +400,8 @@ # -- will be overridden later if we generate a new value $class->set_current_uniq($uniq); + return; +=head LJSUP-8676: set ljuniq cookie on client side. it allows to cached pages for logged-out users. # if no cookie, create one. if older than a day, revalidate my $now = time(); return if $uniq && $now - $uniq_time < 86400;