Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
33bd9dcb
Unverified
Commit
33bd9dcb
authored
Mar 03, 2018
by
Scott
Committed by
GitHub
Mar 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #602 from pupi1985/patch-101
Update cached tag count when deleting posts
parents
69657668
4ae9c8fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
+4
-1
post-create.php
qa-include/app/post-create.php
+1
-0
post-update.php
qa-include/app/post-update.php
+3
-0
qa-search-basic.php
qa-include/plugins/qa-search-basic.php
+0
-1
No files found.
qa-include/app/post-create.php
View file @
33bd9dcb
...
...
@@ -124,6 +124,7 @@ function qa_update_counts_for_q($postid)
qa_db_unaqcount_update
();
qa_db_unselqcount_update
();
qa_db_unupaqcount_update
();
qa_db_tagcount_update
();
}
...
...
qa-include/app/post-update.php
View file @
33bd9dcb
...
...
@@ -106,6 +106,9 @@ function qa_question_set_content($oldquestion, $title, $content, $format, $text,
}
elseif
(
$oldquestion
[
'type'
]
==
'Q'
)
{
// not hidden or queued
qa_post_index
(
$oldquestion
[
'postid'
],
'Q'
,
$oldquestion
[
'postid'
],
$oldquestion
[
'parentid'
],
$title
,
$content
,
$format
,
$text
,
$tagstring
,
$oldquestion
[
'categoryid'
]);
if
(
$tagschanged
)
{
qa_db_tagcount_update
();
}
}
$eventparams
=
array
(
...
...
qa-include/plugins/qa-search-basic.php
View file @
33bd9dcb
...
...
@@ -68,7 +68,6 @@ class qa_search_basic
qa_db_word_contentcount_update
(
array_keys
(
$contentwordidcounts
));
qa_db_word_tagwordcount_update
(
$tagwordids
);
qa_db_word_tagcount_update
(
$wholetagids
);
qa_db_tagcount_update
();
}
public
function
unindex_post
(
$postid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment