Slow admin interface
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- РоманАндрейчук
- Posts: 18
- Joined: 13 Jan 2022, 15:08
Slow admin interface
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?
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?
Re: Slow admin interface
Caching the response on the browser side would be fairly easy be adding a cache header here:РоманАндрейчук 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?
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!

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