• I bootstrap my WordPress installation to a subdirectory of my site. Additionally, I use the wp-config to move my content to a different location outside of my WordPress installation by defining .

    Everything with W3 Total Cache seems to work, with the exception of fragmented caching using mclude. I receive an error message saying “Unable to open file:” with the location pointing to my bootstrapped WP directory instead of where my theme file is actually located.

    Just in case someone else has this problem, I’ve listed the solution. Find

    if ($file) {
    
    $file = ABSPATH . $file;
    
    }

    in /lib/W3/PgCache.php and replace it with the following:

    if ($file) {
    
    if (defined('WP_CONTENT_DIR')) {
    
    $file = WP_CONTENT_DIR . $file;
    
    } else {
    
    $file = ABSPATH . $file;
    
    }

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

  • The topic ‘Fragmented Caching and Custom Content Directory’ is closed to new replies.