ABOUT VIRTUAL DOMAINS
You can host multiple websites from a single instance of Radiant by
matching the Host: portion of the request headers against a regular
expression you specify. You need to set your homepage to be a
‘Virtual Domain’ page type, and its immediate children will be used as
the roots of the different sites you host. Full instructions are in
the README.
I am glad to see that someone has taken up this extension. It is
really nice to support several sites with one installation of Radiant.
I actually have several sites doing this.
One thing that has always bugged me was the caching problem. Usually,
when saving the page, the cache is cleared. Because of the virtual
hosts in the cache path, this is not the case when using this plugin.
I just dove into the plugin to see if there is any way to change this,
but I don’t see any way to get the hostname when editing the page.
Short of clearing the whole cache, not just the page being editted,
does anyone have any ideas how you might do thisß
I think all you would need to do is get the slug of the page
immediately below the homepage (virtual domain page). That should
match the hostname of the site that the page lives on. Take a look at
VirtualDomainPage#site_map.
Feel free to contact me off-list for help with this.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.