WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Page caching of infinite permalink structure (5 posts)

  1. Roeltej
    Member
    Posted 6 months ago #

    It seems that at least some WordPress installations (at least 3.7 and 3.8) allow an infinite number of repeating category slugs instead of giving a 404, ie: site.com/news/2012/news/2012/news/2012/news/2012/news/2012/news/2012/news/2012/

    I have a couple of WordPress installations which have this issue, at least one is running W3TC with page caching on, and somehow a crawler or something is calling some URL's with a long repeating permalink... which creates a large complete directory structure with some files.
    This creates 2 issues, the first is that emptying the pagecache from the backend times out, and it isn't emptied completely.

    The second is created by Wordfence, which scannes the files for vulnerabilities, because the directory structure goes very deep, the scanning takes long and takes a lot of cpu %... which slows down the entire webserver :p

    The issue is kind of fixed when I turn off the page caching, but I dont want that because it slows down the website, and creates more mysql queries...

    Is there some solution for this?

    http://wordpress.org/plugins/w3-total-cache/

  2. Marcelo Pedra
    Member
    Posted 6 months ago #

    Are you using disk:basic or disk:enhanced? both options are generating the same issue?
    what version of PHP are you running on?

  3. Roeltej
    Member
    Posted 6 months ago #

    Enhanced.

    Apache 2.2.23
    MySQL 5.5.30
    Php 5.4.23

    The 'option' for unlimited slug structure exists on multiple servers/installations... don't know about the creation of cached pages... will test disk:basic asap.

  4. Marcelo Pedra
    Member
    Posted 6 months ago #

    I just use disk:enhanced for VPS and disk:basic if in a shared hosting. The option for unlimited slug structure.. I didnt see that. I dont use memcached nor opcodes.

  5. Roeltej
    Member
    Posted 6 months ago #

    It isn't a wp option to get a slug that gets wayyyyy to long... it's more like a bug/feature...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.