You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's currently possible using amendments, but feel free to offer any suggestions to make that simpler. Maybe some day we could add a modify option (in addition to add and remove).
Register caches before plugins if possible.
I think this is the solution we're looking for!
Sounds good to me—go for it. Thanks for the nice issue writeup! And cheers 🍻 very glad to make folks feel more comfortable about their choice to use hapi.
Problem
Some plugins like yar access the cache while registering. Cache configurations are registered after plugins and are not available to plugins.
Workaround
Provision caches in the
register
function of the mainlib/index.js
plugin, before callingHauteCouture.using()
.Proposed solutions
I can provide a pull request if you like. Wanted to make sure I didn't miss something by discussing it first.
P.S. Thanks for creating this suite of tools, cleared up some insecurities I had about Hapi.
The text was updated successfully, but these errors were encountered: