Just a warning, be particularly careful applying any of these suggestions. There's a LOT going on behind the admin screens when those save buttons are spinning. It's best to get a developer to debug the issue properly.
Great ideas. So the module simply runs
Category::regenerateEntireNtree();
and looking through the site, this function is also run when a category is imported via csv AND from the PSCleaner "PrestaShop Cleaner" module under FUNCTIONAL INTEGRITY CONSTRAINTS Check & Fix.
Here's a more generic solution we use for multi-shop where we don't necessarily know the hostname in question:
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Thanks. So that's pretty much what I've got in my module. The validator site comes back and says base64_encode() method is forbidden. Is there an alternative we're supposed to use?
Working on posting a module to the addons site, the validator is failing due to the use of the base64_encode() function. This function is required to encode a curl header with authentication to a payment gateway. Is there a supported alternative to this function?
Thanks!