dynarex-blog 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dynarex-blog.rb +2 -2
- metadata +1 -1
data/lib/dynarex-blog.rb
CHANGED
@@ -123,12 +123,12 @@ class DynarexBlog
|
|
123
123
|
result = @hc_result.read(lookup + number.to_s) do
|
124
124
|
|
125
125
|
if (number == 1) and (lookup == '_entry_lookup.xml') and (@index.records.length == 10) then
|
126
|
-
doc = @hc_lookup.
|
126
|
+
doc = @hc_lookup.refresh('_entry_lookup.xml')
|
127
127
|
r = Document.new(File.open(@file_path + 'index.xml','r').read)
|
128
128
|
else
|
129
129
|
doc = @hc_lookup.read(lookup) { Document.new File.open(@file_path + lookup,'r').read }
|
130
130
|
r = select_page(doc, number)
|
131
|
-
@hc_lookup.
|
131
|
+
@hc_lookup.refresh('_entry_lookup.xml') # refresh to maintain @current_lookup in the cache
|
132
132
|
end
|
133
133
|
|
134
134
|
[
|