
After some weeks of intensive use, it may happen that Redis starts to eat too much RAM and respond too slowly to user request. That's something that was very common with older versions of Redis (1.2, default with Debian 6), but seems to be rare with Redis 2+.
To solve that issue, log in as root and use the following commands:
$ /etc/init.d/redis-server stop $ rm /var/lib/redis/dump.rdb $ /etc/init.d/redis-server start
When renaming a book in Booki with:
$ django-admin.py bookrename ....
the database links to the attachments are broken, and the new url is added to the old one instead of replacing it. When renaming a book named foo with bar, the new attachment URL becomes /var/www/mybooki/data/books/bar/foo/1.0/ for all your attachments.
To fix the links, log in as your Booki database user, and run the following commands:
$ psql booki booki=> update editor_attachment set attachment=replace(attachment, '<bad_path>', '<good_path>')
with the example above, you'll have to use bar/foo as your bad_path, and bar as the good one.