• Resolved plankguy

    (@plankguy)


    I’m using the plugin to only minify js, however i’m having a hell of a time getting it working after changing the cache and min paths (i’m working with a multisite install and want to keep caches within theme folders).

    I keep getting 404’s on the scripts, and no caches are being created.:

    http://wordpress.test.local/wp-content/themes/powerful/static/min/
    /ebs1/www/wp-content/themes/powerful/static/cache/

    Both are correct, and i’ve even defined them again using filter hooks:

    function hs_minify_cache_dir(){
    	return get_template_directory() . '/static/cache/';
    }
    add_filter('bwp_minify_cache_dir', 'hs_minify_cache_dir', 1);
    
    function hs_minify_min_dir(){
    	return get_template_directory_uri() . '/static/min/';
    }
    add_filter('bwp_minify_min_dir', 'hs_minify_min_dir', 1);

    Things work fine using the default min/cache paths.

    http://wordpress.org/extend/plugins/bwp-minify/

Viewing 1 replies (of 1 total)
  • Thread Starter plankguy

    (@plankguy)

    Ok, so the issue was that I needed to copy over the contents of the “/wp-content/plugins/bwp-minify/min/” to the “/min/” directory I created within my theme folder. It’s not that clear in the instructions on betterwp.net, but upon seeing “assuming that an installation of Minify library exists there.”, I realized I had to copy the minify scripts over.

    The only issue I see in the future is if minify library files change in the future…

Viewing 1 replies (of 1 total)
  • The topic ‘404's when changing min/cache paths’ is closed to new replies.