public/wordpress/wp-content/plugins/backupbuddy/lib/xzipbuddy/zipbuddy.php
/**
		 *	use_cached_methods()
		 *	
		 *	Returns whether conditions/configuration indicate cached methods should be used
		 *	Note: Temporarily add the condition for whether get_/set_transient functions
		 *	exist - if not (meaning we are probably running under importbuddy) then we also
		 *	skip caching. This adds a little time when instantiating because we have to test
		 *	every time but it's acceptable for now. In the longer term we will have an
		 *	alternative way to handle the transient data outside of WordPress.
		 *	
		 *	@return		bool	true if use cached methods, false otherwise
		 *
		 */


Returns whether conditions/configuration indicate cached methods should be used
Note: Temporarily add the condition for whether get_/set_transient functions
exist - if not (meaning we are probably running under importbuddy) then we also
skip caching. This adds a little time when instantiating because we have to test
every time but it's acceptable for now. In the longer term we will have an
alternative way to handle the transient data outside of WordPress.

@return         bool    true if use cached methods, false otherwise
Returns whether conditions / configuration indicate cached methods should be used Note : Temporarily add the condition for whether get_ / set_transient functions exist - if not ( meaning we are probably running under importbuddy ) then we also skip caching . This adds a little time when instantiating because we have to test every time but it ' s acceptable for now . In the longer term we will have an alternative way to handle the transient data outside of WordPress . @return bool true if use cached methods false otherwise
protected function use_cached_methods() {
			$result = true;
			$caching_disabled = ( isset( pb_backupbuddy::$options['disable_zipmethod_caching'] ) &&
								  ( pb_backupbuddy::$options['disable_zipmethod_caching'] == '1') );
			$caching_unavailable = ( !( function_exists( 'get_transient' ) && function_exists( 'set_transient' ) ) );	
			$caching_force_disabled = $this->get_zip_method_caching_force_disabled();
			if ( $caching_disabled || $caching_unavailable || $caching_force_disabled ) {
				$result = false;
			}
			return $result;
		}
protected function use_cached_methods ( ) { $ result = true ; $ caching_disabled = ( isset ( pb_backupbuddy :: $ options [ 'disable_zipmethod_caching' ] ) && ( pb_backupbuddy :: $ options [ 'disable_zipmethod_caching' ] == '1' ) ) ; $ caching_unavailable = ( ! ( function_exists ( 'get_transient' ) && function_exists ( 'set_transient' ) ) ) ; $ caching_force_disabled = $ this -> get_zip_method_caching_force_disabled ( ) ; if ( $ caching_disabled || $ caching_unavailable || $ caching_force_disabled ) { $ result = false ; } return $ result ; }
use_cached_methods()
use_cached_methods ()
// By default we'll be using caching // Has caching been explicitly disabled // Do we have the means to cache // Has caching been force disabled for this particular instance of zipbuddy