verbb / postie

A Craft Commerce shipping calculator plugin.
Other
12 stars 18 forks source link

Settings page is very slow #63

Closed codyjames closed 3 years ago

codyjames commented 3 years ago

Description The settings page loads suuuuuper slow for me. Not sure if this is the case for everyone or not. One thing to note is that we have 30k products. I see you are listing a count of products on this page so perhaps that's causing this to slow down.

I also occasionally get Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. which I can adjust, but may indicate a bigger issue.

Steps to reproduce

  1. Install Postie
  2. Go to the Postie settings page

Additional info

engram-design commented 3 years ago

Good point. I've just limited this query to 20 variants which should help. To get the fix early, change your verbb/postie requirement in composer.json to:

"require": {
  "verbb/postie": "dev-craft-3 as 2.4.7",
  "...": "..."
}

Then run composer update. Interested to know if that'll fix things.

As for the max_input_vars that's somewhat to be expected, due to how we're storing Postie provider settings in project config - all on a single page. The next few versions will change this, to not only fix this issue, but add provider instances, so you can have more than one shipping provider setup.

codyjames commented 3 years ago

Thanks, @engram-design! Works much better now.

engram-design commented 3 years ago

Fixed in 2.4.8

engram-design commented 4 months ago

This is also improved in 4.0.0 with provider instances.