Forums / Suggestions / more option on content view cache

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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