markbates-rack_page_caching 0.1.0 → 0.1.1

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.
@@ -20,7 +20,6 @@ unless ActionController.const_defined?('CONFIGURED_PAGE_CACHING_EXTENSIONS')
20
20
 
21
21
  private
22
22
  def read_from_rack_page_cache
23
- puts "configatron.rack.caching.use_page_caching: #{configatron.rack.caching.use_page_caching}"
24
23
  if request.get? && configatron.rack.caching.use_page_caching
25
24
  cpage = Cachetastic::Caches::PageCache.get(request.url)
26
25
  if cpage
@@ -42,6 +42,9 @@ module Rack
42
42
  else
43
43
  @body = body
44
44
  end
45
+ unless @body.nil?
46
+ @body << "\n<!-- Page created at: #{Time.now} -->"
47
+ end
45
48
  @content_type = content_type
46
49
  end
47
50
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markbates-rack_page_caching
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-02 00:00:00 -08:00
12
+ date: 2009-03-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency