static function clearContentCache( $objectIDList, $versionNum = true, $additionalNodeList = false )
    {
    	if ( !is_array($objectIDList) )
    	{
    		return false;
    	}
        eZDebug::accumulatorStart( 'check_cache', '', 'Check cache' );

        KeZCacheManager::clearObjectViewCache( $objectIDList, $versionNum, $additionalNodeList );
        foreach ($objectIDList as $objectID)
        {
        	eZContentCacheManager::clearTemplateBlockCache( $objectID );
        }

        // Clear cached path strings of content SSL zones.
        eZSSLZone::clearCache();

        eZDebug::accumulatorStop( 'check_cache' );
        return true;
    }
Пример #2
0
 /**
  * Clears content cache for specified object: view cache, template-block cache, template-block with subtree_expiry parameter cache
  * without checking of ini settings.
  *
  * @param int|array $objectID (list of) object ID
  * @param bool|int $versionNum
  * @param bool|array $additionalNodeList
  */
 static function clearContentCache($objectID, $versionNum = true, $additionalNodeList = false)
 {
     eZDebug::accumulatorStart('check_cache', '', 'Check cache');
     if (is_array($objectID)) {
         if ($versionNum !== true || $additionalNodeList !== false) {
             trigger_error("This method does not support second and third parameters when operating on many objects!");
             return false;
         }
         self::clearObjectViewCacheArray($objectID);
     } else {
         self::clearObjectViewCache($objectID, $versionNum, $additionalNodeList);
     }
     self::clearTemplateBlockCache($objectID);
     // Clear cached path strings of content SSL zones.
     eZSSLZone::clearCache();
     eZDebug::accumulatorStop('check_cache');
     return true;
 }
Пример #3
0
 /**
  * \static
  */
 static function clearCacheIfNeeded()
 {
     if (eZSSLZone::enabled()) {
         eZSSLZone::clearCache();
     }
 }