liquid_feedback_frontend
diff app/main/member_image/show.lua @ 1148:8874448bbb7a
Avoid caching of member avatar and photo on member page
author | bsw |
---|---|
date | Sun Mar 22 18:50:36 2015 +0100 (2015-03-22) |
parents | 24787d0d9317 |
children | dcbe505ddf24 |
line diff
1.1 --- a/app/main/member_image/show.lua Sun Mar 22 17:32:38 2015 +0100 1.2 +++ b/app/main/member_image/show.lua Sun Mar 22 18:50:36 2015 +0100 1.3 @@ -1,6 +1,8 @@ 1.4 local image_type = param.get("image_type") 1.5 local record = MemberImage:by_pk(param.get_id(), image_type, true) 1.6 1.7 +local dynamic = param.get("dynamic") 1.8 + 1.9 local data, content_type 1.10 1.11 if record then 1.12 @@ -24,7 +26,9 @@ 1.13 1.14 end 1.15 1.16 -request.allow_caching() 1.17 +if not dynamic then 1.18 + request.allow_caching() 1.19 +end 1.20 1.21 slot.set_layout(nil, content_type) 1.22 slot.put_into("data", data)