Module: Jekyll::Typescript::ManagerCache

Included in:
Manager
Defined in:
lib/jekyll/typescript/mancache.rb

Overview

caches files involved in typescript conversions, using their hash and only start a new compilation if the result hash has changed since the last compilation.

Instance Method Summary collapse

Instance Method Details

#post_render(*args) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/jekyll/typescript/mancache.rb', line 12

def post_render(*args)
  if !cache_enabled?
    super
  elsif pages_modified?
    super
    update_cache
  else
    set_pages_from_cache
  end
end