Change cache validity to 7 days.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2017-04-30 16:14:06 +02:00
parent cd8a6a4ece
commit 7d37684c02

View file

@ -1,8 +1,8 @@
# dejure.rb # dejure.rb
# a nanoc filter for dejure.org legal integration service # A nanoc filter for the dejure.org legal integration service
# see <https://dejure.org/vernetzung.html> # See <https://dejure.org/vernetzung.html>
# #
# adapted from PHP reference implementation # Adapted from the PHP reference implementation
# at <https://dejure.org/vernetzung/vernetzungsfunktion.zip> # at <https://dejure.org/vernetzung/vernetzungsfunktion.zip>
# #
# (c) 2017 Thomas Hochstein <thh@inter.net> # (c) 2017 Thomas Hochstein <thh@inter.net>
@ -40,9 +40,9 @@ module Nanoc::Filters
identifier :dejure identifier :dejure
type :text type :text
VERSION = '0.2' VERSION = '0.3-beta'
CACHEDIR = 'tmp/dejure-org' CACHEDIR = 'tmp/dejure-org'
CACHEDAYS = 4 CACHEDAYS = 7
def run(input, params={}) def run(input, params={})
if !(/§|&sect;|Art\.|\/[0-9][0-9](?![0-9\/])| [0-9][0-9]?[\/\.][0-9][0-9](?![0-9\.])|[0-9][0-9], / =~ input) if !(/§|&sect;|Art\.|\/[0-9][0-9](?![0-9\/])| [0-9][0-9]?[\/\.][0-9][0-9](?![0-9\.])|[0-9][0-9], / =~ input)
@ -163,4 +163,4 @@ module Nanoc::Filters
end end
end end
end end