[Phpslash-commit] CVS: phpslash-ft/class Block.class,1.29,1.30
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-04-18 14:35:45
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv11540/phpslash-ft/class Modified Files: Block.class Log Message: doParse only calls storeParsed if the block data changed. Index: Block.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Block.class,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** Block.class 9 Apr 2003 19:18:36 -0000 1.29 --- Block.class 18 Apr 2003 14:35:41 -0000 1.30 *************** *** 520,525 **** $this->parser->parse($this->block_info); $this->parsedData = $this->parser->getFinal(); ! $this->block_info["cache_data"] = $this->parsedData; ! $this->storeParsed(); return true; } else { --- 520,528 ---- $this->parser->parse($this->block_info); $this->parsedData = $this->parser->getFinal(); ! // only write to the db if the data is changed ! if($this->block_info["cache_data"] != $this->parsedData) { ! $this->block_info["cache_data"] = $this->parsedData; ! $this->storeParsed(); ! } return true; } else { |