more option on content view cache

Author Message

decan olivier

Thursday 17 April 2008 7:33:49 am

Hello ,

I was just wondering if it was possible to disable content view cache by role (not the caching of role).
Some website don't need to have différent view cache based on role and it can be a great load reducing to check only the cache for anonymous.

For personnalisation, i just add some ajax and cache-block which is quite better (for performance) than several content cache.

I add a little hack for having this functionnality in kernel/content/view.php

if ( $viewCacheEnabled )
{
    $cacheExpired = false;
    //$user =& eZUser::currentUser();

    // hack kernel //
    //forcing check of anonymous caching..
    $user= & eZUser :: instance( "10");
   // end hack kernel //

$cacheFileArray = eZNodeviewfunctions::generateViewCacheFile( $user, $NodeID, $Offset, $layout, $LanguageCode, $ViewMode, $viewParameters );
 

My ezpublish website: http://www.zenaba.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.