cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh the cache to reload a new image

Former Member
0 Kudos

Hi All,

I am using the ICM cache content code by attaching a URL to display the image.Every thing worked out for me ; i am able to get the image. But now i want to load another image in that place ( I am using a radiobutton control on view to dispaly images accordingly). Though i attach a new urllink (lv_urllink) at the time of call; i am getting old image only.

method onactionbutton

CASE l_ind.

when 1.

lv_urllink = 'http:.... /1.JPG'.

when 2.

lv_urllink = 'http:.... /2.JPG'.

when 3.

lv_urllink = 'http:.... /3.JPG'.

ENDCASE.

  • Create the client object

CALL METHOD cl_http_client=>create_by_url

EXPORTING

url = lv_urllink

IMPORTING

client = g_client

EXCEPTIONS

argument_not_found = 1

internal_error = 2

plugin_not_active = 3

OTHERS = 4.

do i need to refresh/expiry the cache? How to do this one.

I have tried by setting the low value of sec for the below call

cached_response->server_cache_expire_rel( expires_rel = 5 ).

but didnt get any luck.

Let me know whether i have missed anything.

Thanks and Regards,

Satish A.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Resolved by self

Former Member
0 Kudos

Hi forum,

It has been long time but i could nt able to get any post.Can i have any valuable input from Moderators.

Thanks and Regards,

Satish A.

Yes with the way the URL name we give is changed dynamically to the respective call cl_wd_utilities=>construct_wd_url it worked well

l_time as the system-time stamp

  • CONCATENATE 'ZAPL_TEST2' l_time INTO l_urlstrin.

*

  • cl_wd_utilities=>construct_wd_url( EXPORTING

  • application_name = l_urlstrin "Webdynpro application name

  • IMPORTING

  • out_local_url = e_url ).

Former Member
0 Kudos

Hi forum,

It has been long time but i could nt able to get any post.Can i have any valuable input from Moderators.

Thanks and Regards,

Satish A.