Thursday 07 July 2011 6:59:55 am
Hi, I've a content class with a text field. If this text field is filled, I need a 301 redirection to the given value. So I wrote a template operator which should redirect to this page. Within the template operator I am doing this:
$url = $namedParameters['url'];
if ( strlen( $url ) > 0 )
{
eZHTTPTool::redirect( $url, array(), 301 );
eZDB::checkTransactionCounter();
eZExecution::cleanExit(); } But I am running into troubles at a cluster environment because the cache generation is not terminated properly. So, my question: Is there another - better way - to end the execution? Have I missed something? Or is it a bug?
Best wishes,
Georg.
--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004
|