clearcache fragment #

Clear cache before flushing the cache. This is modified setcache fragment example. At the end of this example the fkey_label0 setting is not changed unlike the result at setcache fragment example. Don't forget to add the IP address or hostname as minibrowser trusted host, when running this example.

<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../minibrowser_test.xsd">
    <SnomIPPhoneText id="page0">
    <!-- setcache callback not working, but setcache fragment and flush are working -->
        <Title>page 0</Title>
        <SoftKeyItem>
            <Name>*</Name>
            <Url>http://docs.snom.io/xml_minibrowser/examples/xml/fr_clearcache.xml#sub=*[@id="page1"]&amp;setcache:fkey_label[0]=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://docs.snom.io/xml_minibrowser/examples/xml/fr_clearcache.xml#sub=*[@id="page2"]&amp;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://docs.snom.io/xml_minibrowser/examples/xml/fr_clearcache.xml#sub=*[@id="page3"]&amp;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>