Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Caching value

Go to End

3 Posts   539 Views


Community Member, 66 Posts

28 October 2012 at 2:36am

SilverStripe 2.4.7


I need urgent help with this but basically I am trying to allow json to be passed to a method via a url call.

I wrote the method and it works but only once, then it seems to cache something that stops the method running again.

Can someone please help me out with this? I read that Restful Server allows something like this but I have no idea how to implement it.

I would greatly appreciate any help.


Community Member, 473 Posts

28 October 2012 at 11:38am

This usually happens when you use GET for the request. There's two main ways to get around this:
- Use POST instead
- Append the current time to the request. So your URL would be 'url?' + (new Date).valueOf()


Community Member, 66 Posts

28 October 2012 at 12:05pm

Another great piece of advice. Thanks so much.