helllicht / kirby-autoid

AutoID is a plugin for Kirby 2 wich generates unique ids (numeric or hash) for every page.
MIT License
46 stars 3 forks source link

On Kirby 2.3 Panel is slow on save unless I deactivate Kirby AutoID #6

Open gvocale opened 8 years ago

gvocale commented 8 years ago

Since installing Kirby 2.3, when I create or save a page in the panel, the progress bar moves slowly and finally freezes around 90%.

If, In my config.php I use an empty panel.page.update hook and the AutoID plugin, the panel is slow.

If I remove the empty hook from config.php, the panel returns to be snappy.

If I leave the empty hook and remove the AutoID plugin, the panel returns to be snappy.

The empty hook in config.php looks like this:

kirby()->hook('panel.page.update', function($page) {});

Naturally I am using the hook for other functions and not just keeping it empty, but the fact a panel.page.update hook is present in my config.php is enough to slow down the panel.

bnomei commented 7 years ago

autoid calls site()->pages()->index() and thus is slowing down the more pages you have.