From: <rd...@us...> - 2007-08-09 11:02:05
|
Revision: 418 http://digir.svn.sourceforge.net/digir/?rev=418&view=rev Author: rdg Date: 2007-08-09 04:01:52 -0700 (Thu, 09 Aug 2007) Log Message: ----------- Don't cache things if cache lifetime is set to zero. Modified Paths: -------------- tapirlink/trunk/classes/TpOutputModel.php tapirlink/trunk/classes/TpRequest.php tapirlink/trunk/classes/TpResponse.php tapirlink/trunk/classes/TpSearchParameters.php Modified: tapirlink/trunk/classes/TpOutputModel.php =================================================================== --- tapirlink/trunk/classes/TpOutputModel.php 2007-08-06 21:31:04 UTC (rev 417) +++ tapirlink/trunk/classes/TpOutputModel.php 2007-08-09 11:01:52 UTC (rev 418) @@ -325,7 +325,7 @@ { // Save parameters in cache - if ( TP_USE_CACHE ) + if ( TP_USE_CACHE and TP_RESP_STRUCTURE_CACHE_LIFE_SECS ) { $cache_options = array( 'cache_dir' => TP_CACHE_DIRECTORY ); Modified: tapirlink/trunk/classes/TpRequest.php =================================================================== --- tapirlink/trunk/classes/TpRequest.php 2007-08-06 21:31:04 UTC (rev 417) +++ tapirlink/trunk/classes/TpRequest.php 2007-08-09 11:01:52 UTC (rev 418) @@ -695,7 +695,7 @@ { // Save parameters in cache - if ( TP_USE_CACHE ) + if ( TP_USE_CACHE and TP_TEMPLATE_CACHE_LIFE_SECS ) { $cache_options = array( 'cache_dir' => TP_CACHE_DIRECTORY ); Modified: tapirlink/trunk/classes/TpResponse.php =================================================================== --- tapirlink/trunk/classes/TpResponse.php 2007-08-06 21:31:04 UTC (rev 417) +++ tapirlink/trunk/classes/TpResponse.php 2007-08-09 11:01:52 UTC (rev 418) @@ -100,7 +100,7 @@ // Header should be always dynamic, leave it out from cache $this->Header(); - if ( $this->mCacheable and TP_USE_CACHE ) + if ( $this->mCacheable and TP_USE_CACHE and $this->mCacheLife ) { $params = $this->GetParams(); Modified: tapirlink/trunk/classes/TpSearchParameters.php =================================================================== --- tapirlink/trunk/classes/TpSearchParameters.php 2007-08-06 21:31:04 UTC (rev 417) +++ tapirlink/trunk/classes/TpSearchParameters.php 2007-08-09 11:01:52 UTC (rev 418) @@ -262,7 +262,7 @@ { // Save parameters in cache - if ( TP_USE_CACHE ) + if ( TP_USE_CACHE and TP_OUTPUT_MODEL_CACHE_LIFE_SECS ) { $cache_options = array( 'cache_dir' => TP_CACHE_DIRECTORY ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |