Skip to content

Commit

Permalink
chore: bump to 0.4.0 and make caching errors all by default for this …
Browse files Browse the repository at this point in the history
…release
  • Loading branch information
MikaAK committed Sep 26, 2023
1 parent 47a8317 commit 4f10b30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.4.0
- add whitelist for specific query names for caching instead of caching all, default all still cached
- add ability to tune caching errors, default all still cached

# 0.3.0
- Big fixes for caching not applying all the time
- Content type fixes to respect different forms of responses
Expand Down
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Config
config :request_cache_plug,
enabled?: true,
verbose?: false,
cached_errors: [],
cached_errors: :all,
graphql_paths: ["/graphiql", "/graphql"],
conn_priv_key: :__shared_request_cache__,
request_cache_module: RequestCache.ConCacheStore,
Expand Down
2 changes: 1 addition & 1 deletion lib/request_cache/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule RequestCache.Config do
end

def cached_errors do
Application.get_env(@app, :cached_errors) || []
Application.get_env(@app, :cached_errors) || :all
end

def request_cache_module do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule RequestCache.MixProject do
def project do
[
app: :request_cache_plug,
version: "0.3.0",
version: "0.4.0",
elixir: "~> 1.12",
description: "Plug to cache requests declaratively for either GraphQL or Phoenix, this plug is intended to short circuit all json/decoding or parsing a server would normally do",
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 4f10b30

Please sign in to comment.