Inspired by #750788: Make URL Assignment Balanced, rather than based on File Type. Is possible by using cdn_pick_server(), hence this is a documentation issue.

CommentFileSizeAuthor
#2 938638.patch1.35 KBwim leers
#1 938638.patch1.35 KBwim leers

Comments

wim leers’s picture

Status: Active » Fixed
StatusFileSize
new1.35 KB

Updated README.txt to explain how to achieve this. Patch attached & committed: http://drupal.org/cvs?commit=434676.

wim leers’s picture

StatusFileSize
new1.35 KB

Updated README.txt to explain how to achieve this. Patch attached & committed: http://drupal.org/cvs?commit=434676.

wim leers’s picture

(Drupal.org messed up there.)

This is also necessary for #933942: Merge Parallel and CDN modules: migration path.

mikeytown2’s picture

Suggestion: Take a play from the computed field module and allow one to paste in php code or run it from code
http://drupalcontrib.org/api/function/_computed_field_compute_value/6
Thoughts?

wim leers’s picture

Interesting! This would indeed lower the barrier even further! I created a new issue for this: #939086: Allow cdn_pick_server() to be an actual function *or* some eval()'d PHP code.

Status: Fixed » Closed (fixed)

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