]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: disable transactions for the time being
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Mon, 10 Aug 2015 09:17:49 +0000 (12:17 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Mon, 10 Aug 2015 09:17:49 +0000 (12:17 +0300)
include/rssfuncs.php

index c8e2ce28fb74c39683abb0ee8f6afaf0a4f6afc9..6532fb270e6f385c9d3506a1cb29df6a667ba9d3 100644 (file)
 
                                $entry_content = db_escape_string($entry_content, false);
 
-                               db_query("BEGIN");
+                               //db_query("BEGIN");
 
                                $result = db_query("SELECT id FROM      ttrss_entries
                                        WHERE (guid = '$entry_guid' OR guid = '$entry_guid_hashed')");
                                        }
 
                                        if (find_article_filter($article_filters, "filter")) {
-                                               db_query("COMMIT"); // close transaction in progress
+                                               //db_query("COMMIT"); // close transaction in progress
                                                continue;
                                        }
 
                                        }
                                }
 
-                               db_query("COMMIT");
+                               //db_query("COMMIT");
 
                                _debug("assigning labels [other]...", $debug_enabled);
 
                                        print_r($enclosures);
                                }
 
-                               db_query("BEGIN");
+                               //db_query("BEGIN");
 
 //                             debugging
 //                             db_query("DELETE FROM ttrss_enclosures WHERE post_id = '$entry_ref_id'");
                                        }
                                }
 
-                               db_query("COMMIT");
+                               //db_query("COMMIT");
 
                                // check for manual tags (we have to do it here since they're loaded from filters)
 
 
                                if (count($filtered_tags) > 0) {
 
-                                       db_query("BEGIN");
+                                       //db_query("BEGIN");
 
                                        foreach ($filtered_tags as $tag) {
 
                                                SET tag_cache = '$tags_str' WHERE ref_id = '$entry_ref_id'
                                                AND owner_uid = $owner_uid");
 
-                                       db_query("COMMIT");
+                                       //db_query("COMMIT");
                                }
 
                                _debug("article processed", $debug_enabled);