kristophjunge / docker-mediawiki

Dockerized MediaWiki running under Nginx and PHP-FPM. Based on the official PHP7 image. Packaged with VisualEditor plugin and Parsoid service.
MIT License
62 stars 41 forks source link

cache sessions in DB #4

Closed bebehei closed 7 years ago

bebehei commented 7 years ago

Known issues

  • Sessions are stored in memory via APC and will be lost after container stop.

What about using $wgSessionCacheType = CACHE_DB; in LocalSettings.php? According to the docs, this should save session tokens in Database and database should be persistent and survive a reboot.

I tested it with ExtraLocalSettings.php and it seems to work. I couldn't verify it by 100% (it's 3am).

FB to your image: Keep up the good work! This docker image is absolutely high quality! 👍

kristophjunge commented 7 years ago

I have tested it and can confirm its working.

I decided to make it a MySQL specific default value for the following reasons:

I decide not to use it as default when using SQLite because it would lead to a large amount of write operations which could make the usage of SQLite inefficient.

I removed the "Known Issue" from the readme and added you to the contributors list.

Thank you very much!

bebehei commented 7 years ago

Thank you very much, too!