Page 1 of 1

How to clear the VXML cache

Posted: Thu Sep 01, 2011 1:51 pm
by walkerline
If I change something in my VXML file, the changes cannnot applied immediately on PlumVoice platform. It seems the old copy of my VXML file is cached by PlumVoice such that system will not fetch the new one from my web server.

So how can I do to close the cache?

Re: How to clear the VXML cache

Posted: Thu Sep 01, 2011 4:53 pm
by support
Hi,

This is correct, VXML scripts get cached by the platform. There are two ways to avoid this caching.

1. Wrap the VXML in another programming language that does not get cached (a server-side language). We utilize PHP for this.

Code: Select all

<?php
header("Content-type: text/xml");
echo "<?xml version=\"1.0\"?>";
?>

<vxml version="2.0">
  <form>
    <block> 
      <prompt>
	Any changes to the VXML will propagate immediately.
      </prompt> 
    </block> 
  </form>
</vxml>
2. You could also attempt to fetch your application via a Plum Scratchpad. The scratchpad should contain basic code to fetch your application.

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <property name="documentmaxage" value="0s"/>
  <form>
    <block>
      <goto next="http://your.site.com/example.vxml"/>
    </block>
  </form>
</vxml>
The property documentmaxage ensures that the platform will always fetch your script instead of utilizing the cached version.

Hope this helps!

Regards,
Plum Support