I'm currently struggling with gettext in PHP.
Gettext use cache. That's a good thing, but when I update my translations, I can't access them, which is annoying.
I read we can't flush the cache apart from restarting the web server, which is not a viable solution. Other people use copy of the .mo files with a different name to force them to be loaded again.
First question
I was searching for how long gettext caches the files in memory to consider whether it's acceptable for my application to wait that time before the strings appear. But I couldn't find that information... Is the duration infinite?
Second question
I can't imagine a such popular project as gettext hasn't come with a solution to overcome this problem. Is it PHP-specific?
Thanks in advance for the anwsers I will have. Regards.