[wp-trac] Re: [WordPress Trac] #8958: Huge amount rewrite rules for
page revisions after upgrade
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 25 10:10:58 GMT 2009
#8958: Huge amount rewrite rules for page revisions after upgrade
--------------------------------------------------------------------+-------
Reporter: matthijs | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Permalinks | Version: 2.7
Severity: major | Resolution:
Keywords: permalinks, rewrite_rules, revisions reporter-feedback |
--------------------------------------------------------------------+-------
Comment (by matthijs):
Maybe it's not for the revisions. Looking at the rules, it seems all the
attachments are the problem. Each one has about 11 rules (22 lines), like:
s:35:\"vacancies/474/attachment/([^/]+)/?$\";
s:32:\"index.php?attachment=$matches[1]\";
s:45:\"vacancies/474/attachment/([^/]+)/trackback/?$\";
s:37:\"index.php?attachment=$matches[1]&tb=1\";
s:65:\"vacancies/474/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\";
s:49:\"index.php?attachment=$matches[1]&feed=$matches[2]\";
s:60:\"vacancies/474/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\";
s:49:\"index.php?attachment=$matches[1]&feed=$matches[2]\";
s:60:\"vacancies/474/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\";
s:50:\"index.php?attachment=$matches[1]&cpage=$matches[2]\";
s:28:\"(vacancies/474)/trackback/?$\";
s:37:\"index.php?attachment=$matches[1]&tb=1\";
s:48:\"(vacancies/474)/feed/(feed|rdf|rss|rss2|atom)/?$\";
s:49:\"index.php?attachment=$matches[1]&feed=$matches[2]\";
s:43:\"(vacancies/474)/(feed|rdf|rss|rss2|atom)/?$\";
s:49:\"index.php?attachment=$matches[1]&feed=$matches[2]\";
s:36:\"(vacancies/474)/page/?([0-9]{1,})/?$\";
s:50:\"index.php?attachment=$matches[1]&paged=$matches[2]\";
s:43:\"(vacancies/474)/comment-page-([0-9]{1,})/?$\";
s:50:\"index.php?attachment=$matches[1]&cpage=$matches[2]\";
s:28:\"(vacancies/474)(/[0-9]+)?/?$\";
s:49:\"index.php?attachment=$matches[1]&page=$matches[2]\";
That page (vacancies) currently has only 2 attachments, but apparently
wordpress remembers all previous attachments (which are still in the media
gallery) and writes rules for all of them.
So this is an expected behavior? Then does that mean that this will not
scale to anything behind a few hundred pages or attachments?
--
Ticket URL: <http://trac.wordpress.org/ticket/8958#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list