Content
Clears the cache. This example is similar to the one for setcache. At the end of this example the fkey_label0 setting is not changed unlike in the setcache example.
<?xml version="1.0" encoding="UTF-8"?> <SnomIPPhoneBatch > <SnomIPPhoneText id="page0"> <!-- setcache callback not working, but setcache fragment and flush are working --> <Title>page 0</Title> <SoftKeyItem> <Name>*</Name> <Url>http://link_to_this_example.xml#sub=*[@id="page1"]&setcache:fkey_label0=weather</Url> </SoftKeyItem> <Text>set:fkey_label0:$(set:fkey_label0)<br /> setcache:fkey_label0:$(setcache:fkey_label0)<br/> prees * to continue to setcache</Text> </SnomIPPhoneText> <!-- set: old value --> <SnomIPPhoneText id="page1"> <Title>page 1</Title> <SoftKeyItem> <Name>*</Name> <Url>http://link_to_this_example.xml#sub=*[@id="page2"]&clearcache</Url> </SoftKeyItem> <Text>set:fkey_label0:$(set:fkey_label0)<br /> setcache:fkey_label0:$(setcache:fkey_label0)<br/> prees * to continue clear cache</Text> </SnomIPPhoneText> <SnomIPPhoneText id="page2"> <Title>page 2</Title> <SoftKeyItem> <Name>*</Name> <Url>http://link_to_this_example.xml#sub=*[@id="page3"]&flush</Url> </SoftKeyItem> <Text>set:fkey_label0:$(set:fkey_label0)<br /> setcache:fkey_label0:$(setcache:fkey_label0)<br/> prees * to continue flush</Text> </SnomIPPhoneText> <SnomIPPhoneText id="page3"> <Title>page 3</Title> <Text>set:fkey_label0:$(set:fkey_label0)<br /> setcache:fkey_label0:$(setcache:fkey_label0)</Text> </SnomIPPhoneText> </SnomIPPhoneBatch>
Result:
Further Information
Related articles