You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✏️ Describe the bug
Is the logic in the fix in v4.0.1 for disabling sturcture caching correct? It does disable caching in unit tests (thanks, that resolved #641) but it looks to me like it also disables caching if config('data.structure_caching.enabled') is true.
Should it not be:
$this->app->singleton(
DataConfig::class,
function () {
if (!config('data.structure_caching.enabled') || $this->app->runningUnitTests()) {
return DataConfig::createFromConfig(config('data'));
}
return$this->app->make(DataStructureCache::class)->getConfig() ?? DataConfig::createFromConfig(config('data'));
}
);
Also, is it possible to put this fix in the v3.x branch so we can update to latest v3.x - we have to do some refactoring of our appllication with regards to the way v4.x has changed how data is passed to / from collections.
The text was updated successfully, but these errors were encountered:
Further to issue #641
✏️ Describe the bug
Is the logic in the fix in v4.0.1 for disabling sturcture caching correct? It does disable caching in unit tests (thanks, that resolved #641) but it looks to me like it also disables caching if
config('data.structure_caching.enabled')
is true.Should it not be:
Also, is it possible to put this fix in the v3.x branch so we can update to latest v3.x - we have to do some refactoring of our appllication with regards to the way v4.x has changed how data is passed to / from collections.
The text was updated successfully, but these errors were encountered: