Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Customising the CMS
SilverStripe Forums » Customising the CMS » Director::test() saves results for next call?
|
Page:
1
|
Go to End | |
| Author | Topic: Director::test() saves results for next call? | 285 Views |
-
Director::test() saves results for next call?

1 July 2009 at 7:51pm Last edited: 1 July 2009 7:52pm
Hello there,
I need to call the Director::test() method several times for one DataObject (with different Actions) during my own export function and it seems that Silverstripe saves a DataObject::get() result within an function in my DataObject and uses it for the next time. This only occurs when calling the Controller of the DataObject with the Director::test() method (using a rule in the cms/_config.php), if I open the page in a Browser I see that with every refresh the function works correctly without caching any results.
Any ideas?
FlorianH
-
Re: Director::test() saves results for next call?

2 July 2009 at 12:17am
Disabling the cache Parameter in the DataObject::get_one Method did the trick.
| 285 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: Euphemismus
Welcome to our latest member: fearofbuttons

