8000 Differentiate "not found" from cache hit vs actual not found · Issue #115 · relaton/relaton · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Differentiate "not found" from cache hit vs actual not found #115
Closed
@ronaldtse

Description

@ronaldtse

Sometimes the cache of an entry "not found" can be found in reality, but the cache was stuck to an old result of "not found".

e.g.

Using relaton-nist 1.14.9
...
$ bundle exec relaton fetch 'NIST CSWP 6'
[relaton] (NIST CSWP 6) not found.
No matching bibliographic entry found

From @andrew2net:

the message [relaton] (NIST CSWP 6) not found. is from relaton gem, which acts as a cache. A response from the previous version of relaton-nist was stored in the cache. We had functionality that cleans a cache in case gem's version is changed, but we moved to schema version control. So it needs to run relaton db clear now.

Users will never be able to figure this out.

When the Relaton-xxx gem is updated, should the cache be wiped? At least the "not found" ones?

This information needs to be described in the output:

  • it should say "not found in cache, if you wish to ignore cache please run with "ignore cache" command or wipe the cache

In any case, we must differentiate a "cache hit not found" vs the "actual not found", at the library level. And provide an "ignore cache" option.

From relaton/relaton-nist#93

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0