camaleon_cms 2.4.6.2 → 2.4.6.3
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/apps/plugins/front_cache/front_cache_helper.rb +7 -2
- data/lib/camaleon_cms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ff7754f7dfc1793b4b8152ab93e98526903dbd6a345e45c0f044bcb15f5a763
|
|
4
|
+
data.tar.gz: 40a57b5e28b034bc78d76a9056af06439e394948f64371f1cb7c800c9ad35f98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a31bc8ef4691ca290cbe179ef4def6802a3efddc25ea3cc83de3609bef8ae81e2d242cd90f332b95ea0f8e50125eba3427e704347082198d9164f7609271e776
|
|
7
|
+
data.tar.gz: aae547cf4164b788e371930226b75f5b0c5fbbdcc3e65c76893aae5220df72f8ca47ecce4770dce6b3aeb75274644753660a6374ba36af13c23e6ae9fd27cf24
|
data/README.md
CHANGED
|
@@ -118,7 +118,7 @@ http://camaleon.tuzitio.com/store/plugins
|
|
|
118
118
|
* Add the gem in your Gemfile
|
|
119
119
|
|
|
120
120
|
```
|
|
121
|
-
gem "camaleon_cms", '>= 2.4.
|
|
121
|
+
gem "camaleon_cms", '>= 2.4.6' # (Current stable versions are 2.4.4.5, 2.4.3.10, 2.3.6, 2.2.1, 2.1.1)
|
|
122
122
|
# OR
|
|
123
123
|
# gem "camaleon_cms", github: 'owen2345/camaleon-cms' # latest development version
|
|
124
124
|
|
|
@@ -9,7 +9,7 @@ module Plugins::FrontCache::FrontCacheHelper
|
|
|
9
9
|
|
|
10
10
|
return if signin? || Rails.env == "development" || Rails.env == "test" || !request.get? # avoid cache if current visitor is logged in or development environment
|
|
11
11
|
|
|
12
|
-
cache_key =
|
|
12
|
+
cache_key = front_cache_plugin_cache_key
|
|
13
13
|
@caches = current_site.get_meta("front_cache_elements")
|
|
14
14
|
if !flash.keys.present? && front_cache_exist?(cache_key) # recover cache item
|
|
15
15
|
Rails.logger.info "Camaleon CMS - readed cache: #{front_cache_plugin_get_path(cache_key)}"
|
|
@@ -41,7 +41,7 @@ module Plugins::FrontCache::FrontCacheHelper
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
def front_cache_front_after_load
|
|
44
|
-
cache_key =
|
|
44
|
+
cache_key = front_cache_plugin_cache_key
|
|
45
45
|
if @_plugin_do_cache && !flash.keys.present?
|
|
46
46
|
args = {data: response.body
|
|
47
47
|
.gsub(/csrf-token" content="(.*?)"/, 'csrf-token" content="{{form_authenticity_token}}"')
|
|
@@ -129,4 +129,9 @@ module Plugins::FrontCache::FrontCacheHelper
|
|
|
129
129
|
def front_cache_plugin_match_path_patterns?(key, key2)
|
|
130
130
|
@caches[:paths].any?{|path_pattern| key =~ Regexp.new(path_pattern) || key2 =~ Regexp.new(path_pattern) }
|
|
131
131
|
end
|
|
132
|
+
|
|
133
|
+
def front_cache_plugin_cache_key
|
|
134
|
+
uri = [request.protocol + request.host_with_port, request.fullpath].join('/')
|
|
135
|
+
uri.parameterize
|
|
136
|
+
end
|
|
132
137
|
end
|
data/lib/camaleon_cms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: camaleon_cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.6.
|
|
4
|
+
version: 2.4.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Owen Peredo Diaz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bcrypt
|