Subversion Repositories SmartDukaan

Rev

Rev 10582 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10582 Rev 20488
Line 172... Line 172...
172
	 */
172
	 */
173
	function get($filename = NULL, $use_expires = true)
173
	function get($filename = NULL, $use_expires = true)
174
	{
174
	{
175
		// Check if cache was requested with the function or uses this object
175
		// Check if cache was requested with the function or uses this object
176
		//print_r($filename);
176
		//print_r($filename);
-
 
177
		log_message('debug', "Retrieving Cache: ".$filename);
177
		if ($filename !== NULL)
178
		if ($filename !== NULL)
178
		{
179
		{
179
			$this->_reset();
180
			$this->_reset();
180
			$this->_filename = $filename;
181
			$this->_filename = $filename;
181
		}
182
		}
Line 252... Line 253...
252
		log_message('debug', "Cache retrieved: ".$filename);
253
		log_message('debug', "Cache retrieved: ".$filename);
253
		//print_r($this->_contents);
254
		//print_r($this->_contents);
254
		//echo "<br/>----------------------------------------cache file ends--------------------------------------<br/>";
255
		//echo "<br/>----------------------------------------cache file ends--------------------------------------<br/>";
255
		// Return the cache
256
		// Return the cache
256
		log_message('debug', "Cache retrieved: ".$filename);
257
		log_message('debug', "Cache retrieved: ".$filename);
-
 
258
		log_message('debug', "Hahaha");
257
		return $this->_contents;
259
		return $this->_contents;
258
	}
260
	}
259
 
261
 
260
	/**
262
	/**
261
	 * Write Cache File
263
	 * Write Cache File