I need to configure cachingProxies and domains
u"in place. This makes sense if there is a web "
u"server in front of your caching proxy performing "
u"the rewrites necessary to translate a user-"
u"facing URL into a virtual hosting URL, so that "
u"the requests the caching proxy sees have the "
u"rewrite information in them. Conversely, if the "
u"rewrite is done in or behind the caching proxy, "
u"you want to disable this option, so that the "
u"PURGE requests use URLs that match those seen "
u"by the caching proxy as they come from the "
domains = schema.Tuple(
u"This option is only relevant if you are using "
u"virtual hosting and you have enabled the option "
I need to do this in buildout not in Plone as these urls can change when rerunning buildout and i will probably forget to change them in Plone itself.
I found something like:
Is there any way to manipulate registry settings on startup based on information in buildout of txt file on disk?
You can write a python script that reads the config file and writes that to the cachepurging registry, build the script as a buildout:part then execute the script as a following buildout:part.
I actually found this documented:
Instead of having the script read the config file, you might be able to export the config into the script at build-time directly. I.e. you can either parse the changing configuration in python or in buildout.
Thanks, but this will only work when plone is running and buildout is run.
Otherwise i can never write to Plone, i need it at startup.