Closed christopherdarling closed 5 years ago
Good fix thanks.
Thank you @christopherdarling! @tractorcow could you please tag a release for this? 😄
Just a heads up, while this improves things, I've come across issues with this when viewing in Draft mode. because I've created a mock Controller, there's no Request so Versioned::choose_site_stage() fails. Working on a fix and will update here when ready - unless someone beats me to it ;-)
Fixes #73
Works in PHP 5.6 and 7.2 fixes the problem raised in #73 (Request not found) but there are some other PHP7.2 related issues, these are:
Object
which I've fixed in https://github.com/tractorcow/silverstripe-dynamiccache/compare/master...christopherdarling:feature/php7.2session_cache_limiter
which is called aftersession_start
inDynamicCache::run()
I'm yet to fix this though.