WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
W3TC minified CSS URL includes /wordpress directory & 404's (all else works) (4 posts)

  1. AlexLakes
    Member
    Posted 3 years ago #

    Hi Frederick,

    I finally moved onto a VPS and I've got to say that W3TC really makes it fly now when caching everything in APC, which I couldn't do on shared hosting. Webpagetest.org shows ~.530 sec full page load times! This is using the Thematic theme, WP 3.2.1, nginx, and W3TC to cache everything in APC. Truly 'snappy'. It actually feels as responsive now as I've been trying to make it feel for ages.

    Only issue though, is that the minified CSS URL is incorrect and not working. It's adding the /wordpress directory, in which WordPress is installed, into the minified CSS URL. I've looked through inc/define.php and /lib/W3/Plugin/Minify.php, but just can't seem to find what might be causing it.

    It's creating this CSS link URL (which 404's & leaves the site unstyled):
    http://www.domain.com/wordpress/site/w3tc/min/af3bd/default.include.49f994.css

    But should be creating:
    http://www.domain.com/site/w3tc/min/af3bd/default.include.49f994.css

    ('Site' is my wp-content directory as defined in wp-config.php, and sits outside of /wordpress, in the root. This way if I ever have issues with wordpress, I've been able to trash the entire directory, reupload and I'm good to go. And I don't risk accidentally deleting my content ever that way. The plugins directory has not been renamed, since I remember that isn't compatible with W3TC yet.)

    Any ideas?

  2. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Can you please try the development version of the plugin?

  3. AlexLakes
    Member
    Posted 3 years ago #

    I downloaded .9.2.4b from SVN, but the same issue occurs unfortunately with /wordpress still in the url even though /site (wp-content) is outside of this directory.

    Same results both with and without the "rewrite URL structure" option:
    http://www.domain.com/wordpress/site/w3tc/min/3c746130.68bbd4.css
    http://www.domain.com/wordpress/site/w3tc/min/index.php?file=3c746130.68bbd4.css

    The minify debug output, if that's any help:
    <!-- W3 Total Cache: Minify debug info:
    Engine: apc
    Theme: af3bd
    Template: page

    Replaced CSS files:
    1. site/themes/thematic-child/style.css
    -->

    My wp-config.php (unchanged):
    //DOCUMENT_ROOT is http://www.domain.com
    define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/site');
    define('WP_CONTENT_URL', '/site');

    Everything else, like page caching & object caching, still works well.

  4. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Can you please submit a bug submission form from the support tab of the plugin if there are still issues?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic