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.
- data/lib/dynarex-blog.rb +10 -1
- 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
|
-
@
|
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
|
|