WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
Is there a way to append %post_id% to permalink? (2 posts)

  1. dmiyares
    Member
    Posted 1 year ago #

    Hi... trying to speed up a site with over 100k posts in it. Everything I keep reading says add a post_id number to the permalink and it'll speed things up. Only thing I see that I'm able to add (which is how it is now) is %postname% I'd like to change this to /%post_id%/%postname%/ if possible.

    Thanks

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    Ooof... good question. Disclosure: I hate the way WP handles URLs. It's easily one of the most myopic, convoluted, and inefficient parts of the application, so I don't have high hopes of being able to customize it. I consistently recommend MODX as a CMS if you need flexibility with URLS: its architecture is much more mature and flexible.

    But to your question: You can edit the settings for each post-type inside its definition, under the URLs tab. Whether or not WP will obey these settings is a whole other question, but that's where you can start.

    If speed is your priority, turn off permalinks. But if speed is your priority, you'd again want to look at a different system because WP is fairly slow and it can gobble up RAM for the huge number of PHP functions required to display a basic page. For quick comparison, serving a basic page with WP took me about 3000 function calls and about a half a second (measured using xDebug). Serving the same page in MODX took only 300 function calls and it rendered in less than a tenth of a second.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.