tractorcow / silverstripe-dynamiccache

Simple on the fly caching of dynamic content for Silverstripe
39 stars 27 forks source link

BUG Support for UserForms #15

Closed tractorcow closed 10 years ago

tractorcow commented 10 years ago

DynamicCache seems to mess with the behaviour of UserForms; It would be ideal to have DynamicCache work out of the box with this common module.

Issue noted at https://github.com/silverstripe/silverstripe-userforms/issues/184

tractorcow commented 10 years ago

It turns out that the UserForms module breaks if you turn off SecurityToken, which DynamicCache does at https://github.com/tractorcow/silverstripe-dynamiccache/blob/3.1/code/DynamicCache.php#L278. This is because the token would end up getting cached;

Possible solutions:

tractorcow commented 10 years ago

Fixed with https://github.com/tractorcow/silverstripe-dynamiccache/commit/2c6749757c2abf6d6a5ca42189ffce8c11f74a7e