dynarex-blog 0.6.17 → 0.6.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dynarex-blog.rb +10 -1
  2. metadata +1 -1
data/lib/dynarex-blog.rb CHANGED
@@ -63,7 +63,7 @@ class DynarexBlog
63
63
  lookup_id = lookup.records[id][:id]
64
64
  file = lookup.records[id][:body][:file]
65
65
 
66
- @hc_entry_file.delete(file)
66
+ reset_cache_entry(@current_lookup, file)
67
67
 
68
68
  dynarex = Dynarex.new(@file_path + file)
69
69
  prev_tags = dynarex.record(id).tags
@@ -248,6 +248,15 @@ class DynarexBlog
248
248
 
249
249
  @hc_lookup.delete(lookup_filename)
250
250
  end
251
+
252
+ def reset_cache_entry(lookup_filename, file)
253
+
254
+ @hc_entry_file.delete(file)
255
+ pg = file[/\d+\.xml$/]
256
+
257
+ @hc_result.delete(lookup_filename + pg) if pg
258
+
259
+ end
251
260
 
252
261
  def select_page(doc, number)
253
262
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex-blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.17
4
+ version: 0.6.18
5
5
  platform: ruby
6
6
  authors: []
7
7