Skip to content

Commit

Permalink
drop cache on reset
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Apr 16, 2015
1 parent d219399 commit 6d8f0a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chrome/content/zotero-better-bibtex/debug-bridge.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Zotero.BetterBibTeX.DebugBridge.methods.reset = ->
Zotero.Collections.erase((coll.id for coll in Zotero.getCollections()))
Zotero.BetterBibTeX.keymanager.reset(true)
Zotero.Items.emptyTrash()
Zotero.DB.query('delete from betterbibtex.cache')

err = JSON.stringify((item.toArray() for item in Zotero.BetterBibTeX.safeGetAll()))
throw "reset failed -- Library not empty -- #{err}" unless Zotero.DB.valueQuery('select count(*) from items') == 0
Expand Down

0 comments on commit 6d8f0a1

Please sign in to comment.