whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: WHIMSY-278 - drop semi-permanent cache
Date Sat, 20 Jul 2019 18:03:26 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 87d7619  WHIMSY-278 - drop semi-permanent cache
87d7619 is described below

commit 87d7619fcc23b16bd853654822a23f535d5d643c
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Jul 20 19:03:17 2019 +0100

    WHIMSY-278 - drop semi-permanent cache
---
 lib/whimsy/asf/member.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/member.rb b/lib/whimsy/asf/member.rb
index fc7af88..677bca2 100644
--- a/lib/whimsy/asf/member.rb
+++ b/lib/whimsy/asf/member.rb
@@ -175,7 +175,8 @@ module ASF
     # this will also include the text delimiters.
     def members_txt(full = false)
       prefix, suffix = " *) ", "\n\n" if full
-      @members_txt ||= ASF::Member.find_text_by_id(id)
+      # TODO work out how to cache this safely (WHIMSY-278)
+      @members_txt = ASF::Member.find_text_by_id(id)
       "#{prefix}#{@members_txt}#{suffix}" if @members_txt
     end
 


Mime
View raw message