{"action":"opened","issue":{"url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/788","repository_url":"https://api.github.com/repos/getgrav/grav-plugin-admin","labels_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/788/comments","events_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/788/events","html_url":"https://github.com/getgrav/grav-plugin-admin/issues/788","id":177925698,"number":788,"title":"page medias: bad performances and bad practices in admin","user":{"login":"maximelebreton","id":1072425,"avatar_url":"https://avatars.githubusercontent.com/u/1072425?v=3","gravatar_id":"","url":"https://api.github.com/users/maximelebreton","html_url":"https://github.com/maximelebreton","followers_url":"https://api.github.com/users/maximelebreton/followers","following_url":"https://api.github.com/users/maximelebreton/following{/other_user}","gists_url":"https://api.github.com/users/maximelebreton/gists{/gist_id}","starred_url":"https://api.github.com/users/maximelebreton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximelebreton/subscriptions","organizations_url":"https://api.github.com/users/maximelebreton/orgs","repos_url":"https://api.github.com/users/maximelebreton/repos","events_url":"https://api.github.com/users/maximelebreton/events{/privacy}","received_events_url":"https://api.github.com/users/maximelebreton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T23:35:05Z","updated_at":"2016-09-19T23:35:05Z","closed_at":null,"body":"I have a custom page, with two `PageMediaSelect` per `List` field.\r\nAnd with only four items based on the same `projects.json`, it takes about 25s to load* all the `PageMediaSelect` fields, because the **same request is called 9 times**, and these requests aren't cached...\r\n\r\nI'm surprised about the lack of good practices** with all that concerns 'Ajax' & Performance (#779, #741), because these are basic things, and Grav provides many more complex scenarios with success!\r\nSo maybe the **admin performance part** needs a serious investigation and refactoring?\r\n\r\n*_on a [PlanetHoster mutualised server](https://www.planethoster.net/en/World-Hosting)_\r\n\r\n**_store JSON results in a variable or in local storage, & [PHP Caching and Content Retrieval Function](https://davidwalsh.name/php-cache-function)_  \r\n_________________________\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1072425/18648048/24fe8014-7eb9-11e6-8c46-5a0cf06fcae4.png)\r\n\r\n_________________________\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1072425/18648380/af527c9c-7eba-11e6-9794-a1905c6f30e6.png)"}}
{"actor":{"display_login":"maximelebreton"}}