summaryrefslogtreecommitdiff
path: root/classes/Status_network.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-08-25 11:59:39 -0700
committerBrion Vibber <brion@pobox.com>2010-08-25 12:22:42 -0700
commit63fd2332f0469174be6476eb7455519ebaf30249 (patch)
tree78be0d0618f8d036b68f36da754a90e3762d6b7c /classes/Status_network.php
parenta507f04bc4da9303400db395946c78c95d1ed30c (diff)
Use Status_network's caching settings when loading Status_network_tag entries; cache entries are batched per site and will be cleared when tags are inserted/deleted using the main interface.
(with fixes from tagcache branch)
Diffstat (limited to 'classes/Status_network.php')
-rw-r--r--classes/Status_network.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/classes/Status_network.php b/classes/Status_network.php
index 5680c1458..c4f37ce1c 100644
--- a/classes/Status_network.php
+++ b/classes/Status_network.php
@@ -308,15 +308,7 @@ class Status_network extends Safe_DataObject
*/
function getTags()
{
- $result = array();
-
- $tags = new Status_network_tag();
- $tags->site_id = $this->site_id;
- if ($tags->find()) {
- while ($tags->fetch()) {
- $result[] = $tags->tag;
- }
- }
+ $result = Status_network_tag::getTags($this->site_id);
// XXX : for backwards compatibility
if (empty($result)) {
@@ -329,6 +321,7 @@ class Status_network extends Safe_DataObject
/**
* Save a given set of tags
* @param array tags
+ * @fixme only add/remove differentials
*/
function setTags($tags)
{