Add Pleroma.Plugs.Cache

This commit is contained in:
minibikini 2019-09-09 18:53:08 +00:00 committed by feld
commit 11e12b5761
11 changed files with 457 additions and 7 deletions

View file

@ -53,9 +53,12 @@ defmodule Pleroma.ObjectTest do
assert object == cached_object
Cachex.put(:web_resp_cache, URI.parse(object.data["id"]).path, "cofe")
Object.delete(cached_object)
{:ok, nil} = Cachex.get(:object_cache, "object:#{object.data["id"]}")
{:ok, nil} = Cachex.get(:web_resp_cache, URI.parse(object.data["id"]).path)
cached_object = Object.get_cached_by_ap_id(object.data["id"])