accounts_client 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/accounts/belongs_to_user.rb +2 -2
- metadata +1 -1
@@ -19,12 +19,12 @@ module Accounts
|
|
19
19
|
# @option options [TrueClass] force_service_call - forces call to users-ws
|
20
20
|
# @return [PadmaUser / PadmaUserDecorator]
|
21
21
|
def user(options={})
|
22
|
-
padma_user ||= Rails.cache.read([username,"
|
22
|
+
padma_user ||= Rails.cache.read([username,"btu_padma_user"])
|
23
23
|
|
24
24
|
if padma_user.nil? || options[:force_service_call]
|
25
25
|
padma_user = PadmaUser.find(username)
|
26
26
|
if padma_user
|
27
|
-
Rails.cache.write([
|
27
|
+
Rails.cache.write([username,"btu_padma_user"], padma_user, :expires_in => 5.minutes)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|