remove unused cached_content
This commit is contained in:
parent
4ab1eb9c94
commit
c052e25a8b
|
@ -309,7 +309,7 @@ class API extends Handler {
|
||||||
|
|
||||||
if ($article_id) {
|
if ($article_id) {
|
||||||
|
|
||||||
$query = "SELECT id,title,link,content,cached_content,feed_id,comments,int_id,
|
$query = "SELECT id,title,link,content,feed_id,comments,int_id,
|
||||||
marked,unread,published,score,
|
marked,unread,published,score,
|
||||||
".SUBSTRING_FOR_DATE."(updated,1,16) as updated,
|
".SUBSTRING_FOR_DATE."(updated,1,16) as updated,
|
||||||
author,(SELECT title FROM ttrss_feeds WHERE id = feed_id) AS feed_title
|
author,(SELECT title FROM ttrss_feeds WHERE id = feed_id) AS feed_title
|
||||||
|
@ -338,7 +338,7 @@ class API extends Handler {
|
||||||
"comments" => $line["comments"],
|
"comments" => $line["comments"],
|
||||||
"author" => $line["author"],
|
"author" => $line["author"],
|
||||||
"updated" => (int) strtotime($line["updated"]),
|
"updated" => (int) strtotime($line["updated"]),
|
||||||
"content" => $line["cached_content"] != "" ? $line["cached_content"] : $line["content"],
|
"content" => $line["content"],
|
||||||
"feed_id" => $line["feed_id"],
|
"feed_id" => $line["feed_id"],
|
||||||
"attachments" => $attachments,
|
"attachments" => $attachments,
|
||||||
"score" => (int)$line["score"],
|
"score" => (int)$line["score"],
|
||||||
|
@ -674,10 +674,6 @@ class API extends Handler {
|
||||||
|
|
||||||
if ($show_content) {
|
if ($show_content) {
|
||||||
|
|
||||||
if ($line["cached_content"] != "") {
|
|
||||||
$line["content"] =& $line["cached_content"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($sanitize_content) {
|
if ($sanitize_content) {
|
||||||
$headline_row["content"] = sanitize(
|
$headline_row["content"] = sanitize(
|
||||||
$line["content"],
|
$line["content"],
|
||||||
|
|
|
@ -2579,7 +2579,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$content_query_part = "content, content AS content_preview, cached_content, ";
|
$content_query_part = "content, content AS content_preview, ";
|
||||||
|
|
||||||
|
|
||||||
if (is_numeric($feed)) {
|
if (is_numeric($feed)) {
|
||||||
|
@ -3104,8 +3104,7 @@
|
||||||
tag_cache,
|
tag_cache,
|
||||||
author,
|
author,
|
||||||
orig_feed_id,
|
orig_feed_id,
|
||||||
note,
|
note
|
||||||
cached_content
|
|
||||||
FROM ttrss_entries,ttrss_user_entries
|
FROM ttrss_entries,ttrss_user_entries
|
||||||
WHERE id = '$id' AND ref_id = id AND owner_uid = $owner_uid");
|
WHERE id = '$id' AND ref_id = id AND owner_uid = $owner_uid");
|
||||||
|
|
||||||
|
|
|
@ -671,7 +671,6 @@
|
||||||
updated,
|
updated,
|
||||||
content,
|
content,
|
||||||
content_hash,
|
content_hash,
|
||||||
cached_content,
|
|
||||||
no_orig_date,
|
no_orig_date,
|
||||||
date_updated,
|
date_updated,
|
||||||
date_entered,
|
date_entered,
|
||||||
|
@ -686,7 +685,6 @@
|
||||||
'$entry_timestamp_fmt',
|
'$entry_timestamp_fmt',
|
||||||
'$entry_content',
|
'$entry_content',
|
||||||
'$content_hash',
|
'$content_hash',
|
||||||
'',
|
|
||||||
$no_orig_date,
|
$no_orig_date,
|
||||||
NOW(),
|
NOW(),
|
||||||
'$date_feed_processed',
|
'$date_feed_processed',
|
||||||
|
|
Loading…
Reference in New Issue