diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-12-18 11:03:40 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-12-18 11:03:40 +0000 |
commit | 4d122aa3fca560f9b93bfb5a8abe6feee96d9e61 (patch) | |
tree | 6a4e115cb6a6acfec68fe18cc330089725bdfae7 /admin.php | |
parent | d8a5adc285fbd9237d7c3140f6d6a11b6eceaaee (diff) | |
download | semanticscuttle-4d122aa3fca560f9b93bfb5a8abe6feee96d9e61.tar.gz semanticscuttle-4d122aa3fca560f9b93bfb5a8abe6feee96d9e61.tar.bz2 |
Major refactoring: add a cache table to accelerate the search of linked tags by inference (children and synonyms)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@204 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,7 +22,8 @@ require_once('header.inc.php'); /* Service creation: only useful services are created */
$bookmark2tagservice = & ServiceFactory :: getServiceInstance('Bookmark2Tagservice');
$bookmarkservice = & ServiceFactory :: getServiceInstance('BookmarkService'); -$tag2tagservice = & ServiceFactory :: getServiceInstance('Tag2TagService');
+$tag2tagservice = & ServiceFactory :: getServiceInstance('Tag2TagService'); +$tagcacheservice = & ServiceFactory :: getServiceInstance('TagCacheService');
// Header variables
$tplVars['subtitle'] = T_('Manage users');
@@ -52,9 +53,10 @@ if ( $action if ( $user && ($userinfo = $userservice->getUserByUsername($user)) ) {
$uId = $userinfo['uId'];
+ $tagcacheservice->deleteByUser($uId); $tag2tagservice->removeLinkedTags('','','',$uId);
$userservice->deleteUser($uId);
- $bookmark2tagservice->deleteTagsForUser($uId);
+ $bookmark2tagservice->deleteTagsForUser($uId);
// XXX: don't delete bookmarks before tags, else tags can't be deleted !!!
$bookmarkservice->deleteBookmarksForUser($uId);
|