[pLog-svn] r2815 - plog/trunk/class/dao
Mark Wu
markplace at gmail.com
Wed Jan 18 04:27:12 GMT 2006
Hi Oscar;
It seems I already fixed the deleteCategory, but I still confuse.
There are three cache id in that DAO:
CACHE_ARTICLE_CATEGORIES_BYNAME
CACHE_ARTICLE_CATEGORIES_BLOG
CACHE_ARTICLE_CATEGORIES_LINK
In this revision, I just remove the data from the cache gropu
CACHE_ARTICLE_CATEGORIES_BLOG. Will the dirty data (deleted category)
remaining in the other 2 groups? Do I need to worry about that?
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> mark at devel.lifetype.net
> Sent: Wednesday, January 18, 2006 12:12 PM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r2815 - plog/trunk/class/dao
>
> Author: mark
> Date: 2006-01-18 04:11:53 +0000 (Wed, 18 Jan 2006) New Revision: 2815
>
> Modified:
> plog/trunk/class/dao/articlecategories.class.php
> Log:
> Now the deleteCategory works better.
>
> Modified: plog/trunk/class/dao/articlecategories.class.php
> ===================================================================
> --- plog/trunk/class/dao/articlecategories.class.php
> 2006-01-18 03:48:40 UTC (rev 2814)
> +++ plog/trunk/class/dao/articlecategories.class.php
> 2006-01-18 04:11:53 UTC (rev 2815)
> @@ -214,8 +214,11 @@
> function deleteCategory( $categoryId, $blogId )
> {
> $category = $this->getCategory( $categoryId, $blogId );
> - if( $category )
> - return( $this->delete( "id", $categoryId ));
> + if( $category ) {
> + if ( $this->delete( "id",
> $categoryId ) )
> +
> $this->_cache->removeData( $blogId,
> CACHE_ARTICLE_CATEGORIES_BLOG );
> + return( true );
> + }
> else
> return( false );
> }
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list