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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   592 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
(deleted)

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()

Avatar
Stef87

Community Member, 66 Posts

28 October 2012 at 12:05pm

Another great piece of advice. Thanks so much.