mack-caching 0.7.1.1 → 0.8.0
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/README +1 -1
- data/lib/mack-caching/page_caching/page_caching.rb +1 -1
- data/lib/mack-caching.rb +13 -29
- metadata +4 -4
data/README
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
== Page Caching
|
2
2
|
|
3
3
|
Using page caching with Mack, is incredibly easy. The first thing you
|
4
|
-
need to do is turn it on. In the
|
4
|
+
need to do is turn it on. In the configatron/*.rb file of your chosing
|
5
5
|
place the following configuration setting:
|
6
6
|
|
7
7
|
use_page_caching: true
|
data/lib/mack-caching.rb
CHANGED
@@ -1,36 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
"debug" => false,
|
4
|
-
"adapter" => "local_memory",
|
5
|
-
"expiry_time" => 300,
|
6
|
-
"logging" => {
|
7
|
-
"logger_1" => {
|
8
|
-
"type" => "file",
|
9
|
-
"file" => Mack::Paths.log("cachetastic.log")
|
10
|
-
}
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
1
|
+
require 'rubygems'
|
2
|
+
require 'cachetastic'
|
14
3
|
|
15
|
-
|
4
|
+
configatron.mack.caching.set_default(:use_page_caching, false)
|
5
|
+
configatron.cachetastic_default_options.set_default(:debug, false)
|
6
|
+
configatron.cachetastic_default_options.set_default(:adapter, :local_memory)
|
7
|
+
configatron.cachetastic_default_options.logging.logger_1.set_default(:type, 'file')
|
8
|
+
configatron.cachetastic_default_options.logging.logger_1.set_default(:file, Mack::Paths.log('cachetastic.log'))
|
16
9
|
|
17
10
|
if Mack.env == "production"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
"expiry_time" => 14400,
|
25
|
-
"logging" => {
|
26
|
-
"logger_1" => {
|
27
|
-
"type" => "file",
|
28
|
-
"file" => Mack::Paths.log("cachetastic_caches_mack_session_cache.log")
|
29
|
-
}
|
30
|
-
}
|
31
|
-
})
|
11
|
+
configatron.cachetastic_caches_mack_session_cache_options.set_default(:debug, false)
|
12
|
+
configatron.cachetastic_caches_mack_session_cache_options.set_default(:adapter, :file)
|
13
|
+
configatron.cachetastic_caches_mack_session_cache_options.store_options.set_default(:dir, Mack::Paths.tmp)
|
14
|
+
configatron.cachetastic_caches_mack_session_cache_options.set_default(:expiry_time, 14400)
|
15
|
+
configatron.cachetastic_caches_mack_session_cache_options.logging.logger_1.set_default(:type, 'file')
|
16
|
+
configatron.cachetastic_caches_mack_session_cache_options.logging.logger_1.set_default(:file, Mack::Paths.log("cachetastic_caches_mack_session_cache.log"))
|
32
17
|
end
|
33
|
-
app_config.load_hash(config.merge(app_config.final_configuration_settings), "mack-caching")
|
34
18
|
|
35
19
|
|
36
20
|
require File.join(File.dirname(__FILE__), "mack-caching", "sessions", "cachetastic_session_store")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-caching
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
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: 2008-
|
12
|
+
date: 2008-10-06 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 2.0.0
|
24
24
|
version:
|
25
25
|
description: "mack-caching was developed by: markbates"
|
26
26
|
email: mark@mackframework.com
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements: []
|
63
63
|
|
64
64
|
rubyforge_project: magrathea
|
65
|
-
rubygems_version: 1.
|
65
|
+
rubygems_version: 1.3.0
|
66
66
|
signing_key:
|
67
67
|
specification_version: 2
|
68
68
|
summary: Caching extensions for Mack
|