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

  1. Roeltej
    Posted 2 years 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?


  2. Marcelo Pedra
    Posted 2 years 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
    Posted 2 years ago #


    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
    Posted 2 years 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
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.