Slow admin interface

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
РоманАндрейчук
Posts: 18
Joined: 13 Jan 2022, 15:08

Slow admin interface

Post by РоманАндрейчук » 16 Mar 2023, 19:09

Hello. I am use next configuration: PHP7.4, Aimeos 2021.10, Laravel.

I did some research on the admin interface pages. The script is loaded on them at /admin/default/jqadm/file/js
It is handled by the Aimeos\Shop\Controller\JqadmController@fileAction controller. It concatenates js files from a specific list and outputs them in that path. This is done every time the page is reloaded and this request is not cached. The total file size is 2.5 Mb.

With a server workload, this script can take quite a long time to load. Is it possible to do something with this action? To create a file that would be stored in static and could be cached on the browser side?

Or is it possible to rewrite this controller when using a theme?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Slow admin interface

Post by aimeos » 17 Mar 2023, 15:01

РоманАндрейчук wrote: 16 Mar 2023, 19:09 With a server workload, this script can take quite a long time to load. Is it possible to do something with this action? To create a file that would be stored in static and could be cached on the browser side?
Caching the response on the browser side would be fairly easy be adding a cache header here:
https://github.com/aimeos/aimeos-larave ... er.php#L66

Just like done in the catalog controller:
https://github.com/aimeos/aimeos-larave ... hp#L36-L38

If you create a PR, we are happy to merge it! :-)
РоманАндрейчук wrote: 16 Mar 2023, 19:09 Or is it possible to rewrite this controller when using a theme?
It's independent of a theme. You could create a new controller/action and replace the route.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply