Login | Forgot password | Register

X

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.

Jump to:

2499 Posts in 734 Topics by 543 members

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
  • FlorianH
    avatar
    Community Member
    33 posts

    Director::test() saves results for next call? Link to this post

    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

  • FlorianH
    avatar
    Community Member
    33 posts

    Re: Director::test() saves results for next call? Link to this post

    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

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.