Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.8k views
in Q2A Core by

I wondered why my question list stopped at 667 pages and did not display all questions.

Found the answer finally:

In qa-app-format.php the last page is determined with:

$lastpage=ceil(min($count, 1+QA_MAX_LIMIT_START)/$pagesize);

And in qa-config.php you find the constant:

define('QA_MAX_LIMIT_START', 19999);

 

In other words, q2a limits the list of questions to 19999 by default config.

Hope that helps,
Kai

 

From qa-config.php:

QA_MAX_LIMIT_START is the maximum start parameter that can be requested, for paging through
    long lists of questions, etc... As the start parameter gets higher, queries tend to get
    slower, since MySQL must examine more information. Very high start numbers are usually only
    requested by search engine robots anyway.

Q2A version: 1.6.3
by
So if the default is set at 19999 why did yours stop at 667 ?
by
19999 questions / 30 qu. per page = 667 pages
by
Is there be a way to remove this limit? If there is a way then we should tell it to scott so that he can remove it in the new version.
by
qa-config.php

Change
define('QA_MAX_LIMIT_START', 19999);

to
define('QA_MAX_LIMIT_START', 100000);

that should be sufficient for most forums.
by
Set a limit QA_MAX_LIMIT_START of 500,000 but still more than 4000 pages does not show.

What to do?
by
The total number of questions and answers and comments are cached in qa_options table. They are refreshed with the posted timing.

1 Answer

0 votes
by
edited by
Oh, I see, so is there a max limit that it can go ?
...