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
4ae9c8fc
Commit
4ae9c8fc
authored
Feb 06, 2018
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the cache calculation away from the basic search plugin
parent
1a34ee2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
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
-2
No files found.
qa-include/app/post-create.php
View file @
4ae9c8fc
...
@@ -124,6 +124,7 @@ function qa_update_counts_for_q($postid)
...
@@ -124,6 +124,7 @@ function qa_update_counts_for_q($postid)
qa_db_unaqcount_update
();
qa_db_unaqcount_update
();
qa_db_unselqcount_update
();
qa_db_unselqcount_update
();
qa_db_unupaqcount_update
();
qa_db_unupaqcount_update
();
qa_db_tagcount_update
();
}
}
...
...
qa-include/app/post-update.php
View file @
4ae9c8fc
...
@@ -106,6 +106,9 @@ function qa_question_set_content($oldquestion, $title, $content, $format, $text,
...
@@ -106,6 +106,9 @@ function qa_question_set_content($oldquestion, $title, $content, $format, $text,
}
elseif
(
$oldquestion
[
'type'
]
==
'Q'
)
{
// not hidden or queued
}
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'
]);
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
(
$eventparams
=
array
(
...
...
qa-include/plugins/qa-search-basic.php
View file @
4ae9c8fc
...
@@ -68,7 +68,6 @@ class qa_search_basic
...
@@ -68,7 +68,6 @@ class qa_search_basic
qa_db_word_contentcount_update
(
array_keys
(
$contentwordidcounts
));
qa_db_word_contentcount_update
(
array_keys
(
$contentwordidcounts
));
qa_db_word_tagwordcount_update
(
$tagwordids
);
qa_db_word_tagwordcount_update
(
$tagwordids
);
qa_db_word_tagcount_update
(
$wholetagids
);
qa_db_word_tagcount_update
(
$wholetagids
);
qa_db_tagcount_update
();
}
}
public
function
unindex_post
(
$postid
)
public
function
unindex_post
(
$postid
)
...
@@ -90,7 +89,6 @@ class qa_search_basic
...
@@ -90,7 +89,6 @@ class qa_search_basic
$wholetagids
=
qa_db_posttags_get_post_wordids
(
$postid
);
$wholetagids
=
qa_db_posttags_get_post_wordids
(
$postid
);
qa_db_posttags_delete_post
(
$postid
);
qa_db_posttags_delete_post
(
$postid
);
qa_db_word_tagcount_update
(
$wholetagids
);
qa_db_word_tagcount_update
(
$wholetagids
);
qa_db_tagcount_update
();
}
}
public
function
move_post
(
$postid
,
$categoryid
)
public
function
move_post
(
$postid
,
$categoryid
)
...
...
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