furca
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scaleI AM SO DUMB!
SOLUTION: Set the permalink to /%year%/%postname%/ then it WORKS.
REASON WHY IT WORKS: I wasn’t posting articles anyway and pages are defaultly set to display based on page name anyway!
AWESOME.
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scale“There’s no particularly good all-around solution, unless you want to
precalculate every possible URL and store them in a separate table
with that URL as the index. Then it’s one query for all cases, but
maintaining that table becomes difficult and problematic. It also
becomes static, without the ability to adapt to new cases. Perhaps
this is the way to go for the future, perhaps a plugin could make this
sort of optimization by overriding the rewrite system. But it seems
like more trouble than it’s worth, really.”Anyone with any ideas?
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scaleMac,
That’s correct. The core file references this in my line 851 of rewrite.php This is the default code and the error line that the web is saying has an issue/timeout.
“if ( ! $this->use_verbose_page_rules ) {
$this->add_rewrite_tag(‘%pagename%’, “(.+?)”, ‘pagename=’);
$rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure, EP_PAGES));
return $rewrite_rules;
}”You noted that some sites have over 3000 posts and I am not sure if there is a difference but these are strictly pages. And this error has been documented on various websites (after a few hours of google research). The sites you are using may use a different structure, thus deviating from this error, but I need my pages to be located at site.com/page-name/.
Solutions appreciated.
Cheers,
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scaleMac,
The %pagename% is the default in that file. I switched it to postname and it generated some errors. Like, it works good now (with the default setting of %pagename% there) since I deleted 2,000 pages so i’m down to 1,000. But when I go back and add 2,000 pages it will break again. I need to re-route using the 404 method like he mentioned, or manually map out the pages to their URLs. Any ideas how to manually map?
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scaleMac,
Thanks for pointing that out. So, when I have 3,000 pages it generates this error “Fatal error: Maximum execution time of 30 seconds exceeded in /home/furca/public_html/wp-includes/rewrite.php on line 851”
That line contains:
if ( ! $this->use_verbose_page_rules ) {
$this->add_rewrite_tag(‘%pagename%’, “(.+?)”, ‘pagename=’);
$rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure, EP_PAGES));
return $rewrite_rules;
}————————
So I think it has to do with %pagename% / permalink
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scaleBut it is my feeling that %pagename% is basically the same thing.
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scaleStill looking for a way to do the 404 call-script as described above.
Forum: Fixing WordPress
In reply to: Permalinks doesn’t scaleHi,
PLEASE send me an email to [email protected] with more details on your fix.
I would greatly appreciate it!
Forum: Fixing WordPress
In reply to: 3,000 pages = Rewrite FAILThank you. I looked through the links you posted but I don’t think any of them are helpful to me since this is strictly an issue with the rewrite/permalink.
Any ideas?