I need some help - I've implemented the API using CodeIgniter for a clients site and everything works on the site except for the wiki pages, which are sluggish.
Here is my controller which lists the function calls being made and in what order: http://pastebin.com/m4021c1a7
And here is my model where the actual API calls are made: http://pastebin.com/dd7c504c
The api.php file exists on the same server that is making the calls, so it should be instant but the pages are so very slow, and only in the instance of using the MW API.
Any help or insight anybody could give would be MUCH appreciated.
- Mark
Mark Henderson schreef:
I need some help - I've implemented the API using CodeIgniter for a clients site and everything works on the site except for the wiki pages, which are sluggish.
Here is my controller which lists the function calls being made and in what order: http://pastebin.com/m4021c1a7
And here is my model where the actual API calls are made: http://pastebin.com/dd7c504c
The api.php file exists on the same server that is making the calls, so it should be instant but the pages are so very slow, and only in the instance of using the MW API.
Any help or insight anybody could give would be MUCH appreciated.
If you could tweak your code to log all the API requests it makes, (see example below) that would help a lot. For example:
api.php?action=login&lgname=Catrope&lgpassword=123ABC api.php?action=query&meta=userinfo&uiprop=rights|hastalk api.php?action=query&prop=info|revisions&rvtoken=rollback&titles=Foo api.php?action=rollback&token=123abc%2B&title=Foo
Roan Kattouw (Catrope)
Roan Kattouw wrote:
Mark Henderson schreef:
I need some help - I've implemented the API using CodeIgniter for a clients site and everything works on the site except for the wiki pages, which are sluggish.
Here is my controller which lists the function calls being made and in what order: http://pastebin.com/m4021c1a7
And here is my model where the actual API calls are made: http://pastebin.com/dd7c504c
The api.php file exists on the same server that is making the calls, so it should be instant but the pages are so very slow, and only in the instance of using the MW API.
Any help or insight anybody could give would be MUCH appreciated.
If you could tweak your code to log all the API requests it makes, (see example below) that would help a lot. For example:
api.php?action=login&lgname=Catrope&lgpassword=123ABC api.php?action=query&meta=userinfo&uiprop=rights|hastalk api.php?action=query&prop=info|revisions&rvtoken=rollback&titles=Foo api.php?action=rollback&token=123abc%2B&title=Foo
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Roan, I'm not sure I understand. Does this have to do with caching? Your example just looked like a list of API URLs..
Mark said:
Roan, I'm not sure I understand. Does this have to do with caching? Your example just looked like a list of API URLs..
Roan is suggesting that you alter your code to log the actual API calls being executed so that you can post them as part of the problem statement. If we know what requests are being made, we may be better able to judge what the problem is/isn't ;)
-- Jim R. Wilson (jimbojw)
On Sun, May 4, 2008 at 11:23 AM, Mark Henderson henderson.mark@gmail.com wrote:
Roan Kattouw wrote:
Mark Henderson schreef:
I need some help - I've implemented the API using CodeIgniter for a clients site and everything works on the site except for the wiki pages, which are sluggish.
Here is my controller which lists the function calls being made and in what order: http://pastebin.com/m4021c1a7
And here is my model where the actual API calls are made: http://pastebin.com/dd7c504c
The api.php file exists on the same server that is making the calls, so it should be instant but the pages are so very slow, and only in the instance of using the MW API.
Any help or insight anybody could give would be MUCH appreciated.
If you could tweak your code to log all the API requests it makes, (see example below) that would help a lot. For example:
api.php?action=login&lgname=Catrope&lgpassword=123ABC api.php?action=query&meta=userinfo&uiprop=rights|hastalk api.php?action=query&prop=info|revisions&rvtoken=rollback&titles=Foo api.php?action=rollback&token=123abc%2B&title=Foo
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Roan, I'm not sure I understand. Does this have to do with caching? Your example just looked like a list of API URLs.. -- View this message in context: http://www.nabble.com/API-Implementation---Critique-tp17023962p17048335.html Sent from the WikiMedia API mailing list archive at Nabble.com.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Sorry, not sure I replied to the right message. Also my version is: 1.13alpha (r33497)
[10-May-2008 22:04:26] http://wikibondev.org/w/index.php?action=raw&title=The_most_telling_part... [10-May-2008 22:04:26] http://wikibondev.org/w/api.php?action=query&format=php&titles=The_m... [10-May-2008 22:04:27] http://wikibondev.org/w/index.php?action=render&title=The_most_telling_p... [10-May-2008 22:04:27] http://wikibondev.org/w/api.php?action=query&format=php&prop=revisio... [10-May-2008 22:04:28] http://wikibondev.org/w/api.php?action=query&format=php&titles=The_m...
This is a typical set of API queries that I call when loading a single article from http://wikibondev.org/wiki/v/The_most_telling_part_of_BT%27s_virtualization_...
Mark Henderson schreef:
[10-May-2008 22:04:26] http://wikibondev.org/w/index.php?action=raw&title=The_most_telling_part... [10-May-2008 22:04:26] http://wikibondev.org/w/api.php?action=query&format=php&titles=The_m... [10-May-2008 22:04:27] http://wikibondev.org/w/index.php?action=render&title=The_most_telling_p... [10-May-2008 22:04:27] http://wikibondev.org/w/api.php?action=query&format=php&prop=revisio... [10-May-2008 22:04:28] http://wikibondev.org/w/api.php?action=query&format=php&titles=The_m...
This is a typical set of API queries that I call when loading a single article from http://wikibondev.org/wiki/v/The_most_telling_part_of_BT%27s_virtualization_...
Reply may be a little late (replying to a 9-month-old post here), but you should know that you can combine API requests as follows:
api.php?action=query&titles=Foo&prop=info|revisions|categories
This'd merge 3 of the quoted queries into one.
Roan Kattouw (Catrope)
Roan Kattouw said:
Mark Henderson schreef:
[10-May-2008 22:04:26] http://wikibondev.org/w/index.php?action=raw&title=The_most_telling_part... [10-May-2008 22:04:26] http://wikibondev.org/w/api.php?action=query&format=php&titles=The_m... [10-May-2008 22:04:27] http://wikibondev.org/w/index.php?action=render&title=The_most_telling_p... [10-May-2008 22:04:27] http://wikibondev.org/w/api.php?action=query&format=php&prop=revisio... [10-May-2008 22:04:28] http://wikibondev.org/w/api.php?action=query&format=php&titles=The_m...
This is a typical set of API queries that I call when loading a single article from http://wikibondev.org/wiki/v/The_most_telling_part_of_BT%27s_virtualization_...
Reply may be a little late (replying to a 9-month-old post here), but you should know that you can combine API requests as follows:
api.php?action=query&titles=Foo&prop=info|revisions|categories
This'd merge 3 of the quoted queries into one.
and the other two aren't API queries at all; he's calling index.php
mediawiki-api@lists.wikimedia.org