5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 20:36:21 +00:00

Merge branch 'issue-13619' of https://0xacab.org/sutty/sutty into 17.3.alpine.panel.sutty.nl

This commit is contained in:
Sutty 2023-07-06 15:49:13 +00:00
commit 58b0f8f408

View file

@ -223,7 +223,9 @@ class Site < ApplicationRecord
# colecciones. # colecciones.
def collections def collections
unless @read unless @read
jekyll.reader.read_collections Site.one_at_a_time.synchronize do
jekyll.reader.read_collections
end
@read = true @read = true
end end
@ -439,6 +441,10 @@ class Site < ApplicationRecord
find_by(name: "#{Site.domain}.") find_by(name: "#{Site.domain}.")
end end
def self.one_at_a_time
@@one_at_a_time ||= Thread::Mutex.new
end
def reset def reset
@read = false @read = false
@layouts = nil @layouts = nil