Did some testing and boost and parallel don't play together too nicely... there are several options, and detecting the subdomain seems like the best bet. Means that the js/css files get written to multiple dir's. Right now:

cache/www.example.com/sites/default/files/css/...

new way

cache/www.example.com/sites/default/files/css/...
cache/cdn1.example.com/sites/default/files/css/...
cache/cdn2.example.com/sites/default/files/css/...
cache/cdn3.example.com/sites/default/files/css/...

Plan B would be this

cache/permanent/sites/default/files/css/...

and hope for no name collisions.



based on this I plan on using multiple subdomains for css/js files.

CommentFileSizeAuthor
#2 boost-563814.patch4.17 KBmikeytown2

Comments

mikeytown2’s picture

logic
if module_exists parallel then get 3 variables. if not blank dump in array; array_unique; array_filter. when writing js/css files _boost_copy_file & _boost_gz_copy_file the $dest is an array that is in a foreach loop.

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new4.17 KB

didn't quite work as planned, but I like it.

mikeytown2’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.