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

  1. AlexLakes
    Posted 5 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):

    But should be creating:

    ('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
    Plugin Author

    Posted 5 years ago #

    Can you please try the development version of the plugin?

  3. AlexLakes
    Posted 5 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:

    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
    Plugin Author

    Posted 4 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

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

About this Topic