{"action":"created","issue":{"url":"https://api.github.com/repos/seenthis/seenthis_squelettes/issues/95","labels_url":"https://api.github.com/repos/seenthis/seenthis_squelettes/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/seenthis/seenthis_squelettes/issues/95/comments","events_url":"https://api.github.com/repos/seenthis/seenthis_squelettes/issues/95/events","html_url":"https://github.com/seenthis/seenthis_squelettes/issues/95","id":61572795,"number":95,"title":"modifier un profil => boucle presque infinie","user":{"login":"Fil","id":7001,"avatar_url":"https://avatars.githubusercontent.com/u/7001?v=3","gravatar_id":"","url":"https://api.github.com/users/Fil","html_url":"https://github.com/Fil","followers_url":"https://api.github.com/users/Fil/followers","following_url":"https://api.github.com/users/Fil/following{/other_user}","gists_url":"https://api.github.com/users/Fil/gists{/gist_id}","starred_url":"https://api.github.com/users/Fil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fil/subscriptions","organizations_url":"https://api.github.com/users/Fil/orgs","repos_url":"https://api.github.com/users/Fil/repos","events_url":"https://api.github.com/users/Fil/events{/privacy}","received_events_url":"https://api.github.com/users/Fil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/seenthis/seenthis_squelettes/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/seenthis/seenthis_squelettes/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-14T11:50:12Z","updated_at":"2015-03-16T15:44:08Z","closed_at":null,"body":"Dans (au moins) deux fonctions appelées lorsqu'on édite son profil (formulaires/profil.php : nettoyer_nom_auteur et nettoyer_logo_auteur), on trouve une boucle sur l'ensemble des messages qu'on a postés, et qui vise à recalculer leur cache. Quand on en a des milliers autant dire que ça ne peut pas aller au bout.\r\n```\r\n\t$query = sql_select(\"id_me\", \"spip_me\", \"id_auteur=$id_auteur\");\r\n```\r\nil faudrait remplacer ça par un traitement par morceaux, envoyé en job_queue"},"comment":{"url":"https://api.github.com/repos/seenthis/seenthis_squelettes/issues/comments/81749918","html_url":"https://github.com/seenthis/seenthis_squelettes/issues/95#issuecomment-81749918","issue_url":"https://api.github.com/repos/seenthis/seenthis_squelettes/issues/95","id":81749918,"user":{"login":"Fil","id":7001,"avatar_url":"https://avatars.githubusercontent.com/u/7001?v=3","gravatar_id":"","url":"https://api.github.com/users/Fil","html_url":"https://github.com/Fil","followers_url":"https://api.github.com/users/Fil/followers","following_url":"https://api.github.com/users/Fil/following{/other_user}","gists_url":"https://api.github.com/users/Fil/gists{/gist_id}","starred_url":"https://api.github.com/users/Fil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fil/subscriptions","organizations_url":"https://api.github.com/users/Fil/orgs","repos_url":"https://api.github.com/users/Fil/repos","events_url":"https://api.github.com/users/Fil/events{/privacy}","received_events_url":"https://api.github.com/users/Fil/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T15:44:08Z","updated_at":"2015-03-16T15:44:08Z","body":"bah je sais pas :)  faut voir\n\n\n-- Fil\n\nOn Mon, Mar 16, 2015 at 3:12 PM, Julien Kirch <notifications@github.com>\nwrote:\n\n> Donc si on optimize et qu'on enlève le recalcul on est bon ?\n>\n> --\n> Reply to this email directly or view it on GitHub\n> <https://github.com/seenthis/seenthis_squelettes/issues/95#issuecomment-81689510>\n> .\n>\n"}}