Fix page caching

This commit is contained in:
2023-07-29 18:27:45 +10:00
parent 126dcc10b4
commit b389abf29d
4 changed files with 6 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ module Adamantium
if bookmark[:cache]
page_cacher.call(url: created_bookmark.url) do |content|
post_repo.update(id: created_bookmark.id, cached_content: content)
post_repo.update(created_bookmark.id, cached_content: content)
end
end

View File

@@ -12,6 +12,7 @@ module Adamantium
required(:post_type).value(included_in?: %w[bookmark])
required(:syndicate_to).array(:string)
required(:photos).array(:hash)
required(:cache).filled(:bool)
end
end
end