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.

General Questions /

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

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

Caching value


Reply


3 Posts   340 Views

Avatar
Stef87

Community Member, 66 Posts

28 October 2012 at 2:36am

SilverStripe 2.4.7

Hi

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.

Avatar
simon_w

Forum Moderator, 474 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()

Avatar
Stef87

Community Member, 66 Posts

28 October 2012 at 12:05pm

Another great piece of advice. Thanks so much.