zikula/core

Changing session storage type doesn't appear to work

craigh opened this issue · 6 comments

this is a problem in 3.1.0 ONLY

when changing session storage type, the value is properly updated in the config but it doesn't switch the type of storage actually.

I suspect the cache simply must be properly cleared so the config is reloaded.

If I delete the cache/prod/sessions dir then the method changes

I'm not sure the previous comment is actually true.

The problem I think lies in my lack of understanding of the container and the rebuild process. The same problem that affects module installation and other container-related operations. Before Sy5 it was pretty clear how the container worked - everything worked from the files in the cache folder... delete the cache and it rebuilds and changes the operation/behavior. Since Sy5, that seems changed - the container seems held in memory and doesn't seem to affect change very quickly... sometimes several page loads or leaving a site and returning are required before the cached files are rebuilt and change the operation/behavior. This seems random and unpredictable and makes changing the container very difficult.

Screen Shot 2020-09-26 at 9 30 08 AM

it appears I am using OPcache without understanding it. So perhaps the problem is that and not Sy5...

indeed. disabling OPcache seems to have cleared the problem. behavior is now as expected...

the problem of course is how to deal with this in a generic way in production for zikula installations.

this seems promising https://ma.ttias.be/how-to-clear-php-opcache/

opcache_reset();

closed by #4507