The problem will be elsewhere. As soon as he returned the code of the module, everything changed on the main page and after a while it stopped. So now the question is, does it happen to have some extra cache module installed, or does the web hosting have its own cache.
It's easy to write that it doesn't work, but we can't see if you've edited the function correctly. We don't see how the module is set.