5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1265 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.
| 1265 Views | ||
|
Page:
1
|
Go to Top |

