diff options
-rw-r--r-- | app/views/request/_correspondence.rhtml | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/app/views/request/_correspondence.rhtml b/app/views/request/_correspondence.rhtml index c974735bd..6a79bd7cf 100644 --- a/app/views/request/_correspondence.rhtml +++ b/app/views/request/_correspondence.rhtml @@ -3,22 +3,24 @@ if !info_request_event.nil? && info_request_event.event_type == 'response' incoming_message = info_request_event.incoming_message end +# XXX disable this caching for now until we invalidate it properly - maybe do +# it at a higher level anyway. # cache against all the parameters that there are to this partial -cache_name = "" -if !info_request_event.nil? - cache_name = cache_name + "correspondence/" + info_request_event.id.to_s -end -if !incoming_message.nil? - cache_name = cache_name + "/incoming_message/" + incoming_message.id.to_s -end -if !@collapse_quotes.nil? && !@collapse_quotes - cache_name = cache_name + "/collapse/false" -else - cache_name = cache_name + "/collapse/true" # default is true -end -# yeuch, must be nicer way of telling cache just to use this cache_name, than -# putting it falsely in list action -cache(:controller => 'request', :action => 'list', :extra => cache_name) do +#cache_name = "" +#if !info_request_event.nil? +# cache_name = cache_name + "correspondence/" + info_request_event.id.to_s +#end +#if !incoming_message.nil? +# cache_name = cache_name + "/incoming_message/" + incoming_message.id.to_s +#end +#if !@collapse_quotes.nil? && !@collapse_quotes +# cache_name = cache_name + "/collapse/false" +#else +# cache_name = cache_name + "/collapse/true" # default is true +#end +## yeuch, must be nicer way of telling cache just to use this cache_name, than +## putting it falsely in list action +#cache(:controller => 'request', :action => 'list', :extra => cache_name) do if not incoming_message.nil? %> @@ -93,5 +95,5 @@ end %> -<% end %> +<% # end %> |