eZ Community » Forums » Suggestions » more option on content view cache
expandshrink

more option on content view cache

more option on content view cache

Thursday 17 April 2008 4:33:49 pm

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 );
 

Modified on Thursday 17 April 2008 4:34:13 pm by decan olivier

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from