Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cachefilter plugin update #1078
Show problems with cachefilter plugin.
The test case basically reflects what my REST service is doing, with the difference that successive kdbGet calls do not return anything in the latter (probably because the plugin is not called... for whatever reason).
As you can see above, keys are also written to the wrong mountpoint when the whole cache is appended during kdbSet. I also noticed that my global plugin list gets always reset when working with mount commands (maybe a side-effect of my plugin?).
POSTGETSTORAGE has weird semantics: @tom-wa what was the idea here?. They are executed for in line 600 for only one backend (but similar to foreach semantics), thus keys are injected in wrong backends. But in other places (error condition) it has deinit semantics. This mixture makes it unusable.
For this PR you could remove the line 600, and fix the hook for your needs. This would also be valuable input for @mpranj which requirements the hook positions have.