Support » Fixing WordPress » WordPress optimization permalinks structure

  • Hello,

    I wanted to ask you a few questions regarding speed optimization for WordPress.

    I am trying to make optimization for my blog prior for launching it. I read the WordPress and there is says that I should use a permalink that starts with a number (i.e. %year%, %post_id% in order to prevent use of verbose rules.

    I have a few questions regarding this:

    1) Can I use a permalink structure like /%post_id%-%postname%.html in order for WordPress not to create verbose rules. The difference is that I use ‘-‘ instead of ‘/’.

    2) I use W3 Total cache plugin.
    W3 cache stores static files so it can serve them immediately from the disk. It uses the structure of the path to create the folders. It means that if I have a URL like this:

    W3 Cache will store it in folder called ‘2011/post.html/’ and inside there will be the static HTML file.

    The problem is that Linux OS can store approx. 32,000 file in each folder. That means that if I use a URL without like:

    All the static/cached files will be stored in one folder. That means that if I have more than 32,000 posts, there will be a limit for the amount of cached posts that W3 can store.

    So my questions is if it is a recommended use (a folder in the URL) for W3 Total cache or I can just use a URL without a folder in my permalink structure?

    I need an answer to those two questions before launching my blog.

    I use:
    Linux Ubuntu 10.xx
    Stored on Amazon AWS
    Wordpress Version: 3.1.1

    Thanks in advance.

Viewing 11 replies - 1 through 11 (of 11 total)
  • esmi


    Forum Moderator


    Need your opinion. I want to use a URL like %category%/%postname%.html. I know that wordpress creates verbose rules because I don’t start my url with a number.

    1) I wanted to know if W3 can prevent overloading on my server when my blog reached more than 70,000 posts? – So that will prevent the extra amount of queries on my database.

    2) Does W3 cache prevent WordPress from running the verbose rules?

    3) Does Google bot gets the cached version for the post like users when it first visits the post? (I want it to get the cached version)

    Many thanks

    Oh, I also want to know another thing.

    I know that there is a limit on the amount of files and folders that can be stored in a single folder. I have a blog with thousands of posts. I think that using a category in the URL (ie. %category%/%postname%) is a good practice if you use W3 Total Cache plugin, because it created the caching pages within several folders (ie. gadgets, news, reviews, etc.). So each category based posts are residing within a dedicated category folder. So If my blog have ten thousands of posts, It won’t get to a place where the Linux operating system prevent W3 Cache from operating correctly.

    If I won’t use this structure, W3 Cache won’t be able to cache more than approx. 32K posts because it will reach the limit of folder/files within the caching folder.

    Any ideas about that?

    Update: Does W3 Cache works with Taxonomies? – which plugin you recommend for workign with Taxonomies?



    Forum Moderator

    I think that using a category in the URL (ie. %category%/%postname%) is a good practice

    No – it isn’t.

    Category in Permalinks Considered Harmful

    But W3 Total Cache will serve the images from cache and WordPress won’t execute those queries, am I wrong?

    OK, I’ve decided to go with %year%/%postname%.html as the permalink structure.

    Thanks for helping me out.



    Forum Moderator

    Good structure choice. 🙂

    By the way, do you know when a new version of W3 Total Cache will be out? months have passed by without an update



    Forum Moderator

    Sorry – no. You might want to try asking the plugin developer directly.

    I can’t get an answer for this question:

    If I use a Custom post type in the parmalink like: /%custompost%/%postname%.html, would WordPress create verbose rules, the same if I start the parmalink with %category%?

    Yes it will. I wouldn’t worry about the limitations of the file system unless you’re certain all of those posts will need to be cached at once, if so there are other caching methods available that can accommodate.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WordPress optimization permalinks structure’ is closed to new replies.