Quote from: OpenGeek at Aug 03, 2008, 06:52 PM
No, you do not have to contact the database to determine if the site is offline; that can all be done now without a connection to the database, but if you use site_unavailable_message, there is not going to be any parsing available. Only if you set a site_unavailable_page in the system settings (which doesn’t seem to be in the configuration of Revolution by default, but you can add this setting). When adding site_unavailable_page with a value of 1, and clearing the site cache after doing so (you should do this for now as changing settings does not automatically refresh the cache at this time in Revolution), all of my tags rendered fine on my unavailable page. Is this what you are attempting to do?
Hi Jason, that works thanks. Is that previous behaviour still going to be available in the final release?
I take it you’ve not yet finished the "offline" support, as with the default behaviour, MODx still outputs my own template - not the error page.
My main concern is a situation that seems to be happening at the moment in the current alpha stage:
- I take my site offline to do some maintenance
- everyone else sees the "unavailable page" - either the site_unavailable_page or the filesystem page
- when I’m trying to use the site (and logged in), no tags get parsed so I cannot view my changes without putting the site online again
e.g. the site still needs to work as if it was online when a manager session is logged in - it doesn’t at the moment.