Fix page caching
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user