diff options
author | Andrew Dolgov <[email protected]> | 2017-05-04 15:22:57 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-04 15:22:57 +0300 |
commit | 2ed0d6c433c9ef5a6b9137725030f64b4b38392e (patch) | |
tree | 1ce20d942027d0b8d3d9b90bbd16fad631e760ce /include/functions.php | |
parent | aeb1abedb2cb5051c2a94e287f114bdbdaa467ff (diff) |
move counter cache to a separate class
fix references to get_article_tags
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php index 987e0c3f8..30d92d091 100644 --- a/include/functions.php +++ b/include/functions.php @@ -134,7 +134,6 @@ require_once 'db-prefs.php'; require_once 'version.php'; - require_once 'ccache.php'; require_once 'labels.php'; require_once 'controls.php'; @@ -233,7 +232,7 @@ if ($purge_interval == -1 || !$purge_interval) { if ($owner_uid) { - ccache_update($feed_id, $owner_uid); + CCache::update($feed_id, $owner_uid); } return; } @@ -277,7 +276,7 @@ $rows = db_affected_rows($result); - ccache_update($feed_id, $owner_uid); + CCache::update($feed_id, $owner_uid); if ($debug) { _debug("Purged feed $feed_id ($purge_interval): deleted $rows articles"); @@ -1078,7 +1077,7 @@ /* Special case: NULL category doesn't actually exist in the DB */ $cv = array("id" => 0, "kind" => "cat", - "counter" => (int) ccache_find(0, $_SESSION["uid"], true)); + "counter" => (int) CCache::find(0, $_SESSION["uid"], true)); array_push($ret_arr, $cv); |