WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Page Caching produces .htaccess file that is too long (6 posts)

  1. Brian Layman
    Member
    Posted 2 years ago #

    When I go to turn on page caching the line from .htaccess that starts "RewriteCond %{REQUEST_URI}" ends up being 101,544 characters long.

    I'm working with a rather large site. I'm wondering if it wouldn't be better to somehow build that line as a ! condition and find the standard urls to exclude.

    Do you think that's an avenue worth investigating? Do you see another alternative?

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    You mean the line is so long that it causes 500 errors or something?

  3. Brian Layman
    Member
    Posted 2 years ago #

    Thanks for replying Frederick.

    Yes, that's exactly what was happening.

    In the end I simply used output buffering in index.php. An if statement to check to see if the user is logged in or not and the whole thing is blazingly fast under extreme load.

  4. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the input.

  5. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    I suppose you have extremely long list of "Accept/Reject URIs" in w3tc config? Note you dont have to specify each URL - regular expressions are allowed there. Having long list of files there will cause significant performance problems in any case.

  6. Brian Layman
    Member
    Posted 2 years ago #

    I'm not involved with the client any longer, but I simply had activated the plugin activated page cache and told it it could modify the .htaccess file. After that I got a 500 error.

    The site was a very large mu install (212K blogs) site with a very large number of articles on the primary blog on which I was activating w3tc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic