Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Director::test() saves results for next call?

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

Page: 1
Go to End
Author Topic: 1420 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.

    1420 Views
Page: 1
Go to Top

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

Comments on this website? Please give feedback.