summaryrefslogtreecommitdiffstats
path: root/lib/Db/CacheActorsRequest.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-11-14 12:37:54 -0100
committerMaxence Lange <maxence@artificial-owl.com>2018-11-14 12:37:54 -0100
commitaa102018fedb0d1497294a2950e07f69cb9d7172 (patch)
tree6e8aee252ca32ec6f3722528c117a402ff9d5908 /lib/Db/CacheActorsRequest.php
parent82bb7e83ed4e99dd11bfa521628c933fc50ca7d3 (diff)
cache new actor, and force refresh
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Db/CacheActorsRequest.php')
-rw-r--r--lib/Db/CacheActorsRequest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Db/CacheActorsRequest.php b/lib/Db/CacheActorsRequest.php
index a19cf3b9..4e0ef561 100644
--- a/lib/Db/CacheActorsRequest.php
+++ b/lib/Db/CacheActorsRequest.php
@@ -183,5 +183,18 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
}
+ /**
+ * delete cached version of an Actor, based on the UriId
+ *
+ * @param string $id
+ */
+ public function deleteFromId(string $id) {
+ $qb = $this->getCacheActorsDeleteSql();
+ $this->limitToIdString($qb, $id);
+
+ $qb->execute();
+ }
+
+
}