caboose-cms 0.5.44 → 0.5.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/#Untitled-1# +16 -0
- data/app/models/caboose/page_cacher.rb +5 -4
- data/lib/caboose/version.rb +1 -1
- data/lib/tasks/caboose.rake +6 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTg1ODMwMTM5YTIyNmRkNGQzZmUyYzk4ZDEzYjhiYWVlYTY0MThjZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjQ1NmRlYTYxZTUwZmY3MWE0YzAwMjQyYzEwOTg3NWJlMjc3MDNmMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDk1ZjNhNzQzNjU4NGZkNWU0OWMyM2Q0Zjc4ZmIyYmQ0N2FkZTNhNGUwYjQ5
|
10
|
+
MzdmZDMyNTJmYzc1MTFhMDJjMGNiMWQyMzM0NGU5ZjRjMGVlNDA3YTQxNjBl
|
11
|
+
NTFiYTdmMTgyMjZkMzMxMjJlZDAyMDg0MWE4NmMxM2Y4OWZhMjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzU0MDQxMmZmZThlMTUyYWEwNTdhZmUzZThlNjljMTA3Yzc5NTJiZWI1NzEx
|
14
|
+
YjRlOGJlY2M4MzM1NGVkNjE5YzFhMzQyMjFhZGFkMjYxMjAxOGMxZTYzNzY3
|
15
|
+
OGMyYTA5YzkwNzBjMzEzOWNiY2Y0ZDZlZjBkYjEyMzkwYjgxNzE=
|
@@ -0,0 +1,16 @@
|
|
1
|
+
caboosecms.com
|
2
|
+
cityofnorthport.org
|
3
|
+
sweethomefoodbar.com
|
4
|
+
tuscaloosaorthopedics.com
|
5
|
+
tuscaloosarivermarket.com
|
6
|
+
sweethomefoodbaral.com
|
7
|
+
westerveltenergy.com
|
8
|
+
nine.is
|
9
|
+
parkertowing.com
|
10
|
+
arc.caboosecms.com
|
11
|
+
tuscortho.com
|
12
|
+
ninelite.com
|
13
|
+
alabamarealtorsvote.com TRUE TRUE
|
14
|
+
birminghamcorporatechallenge.com FALSE FALSE
|
15
|
+
lockerroom.caboosecms.com FALSE FALSE
|
16
|
+
groves.caboosecms.com TRUE FALSE
|
@@ -16,10 +16,11 @@ module Caboose
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.cache_all
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
query = ["select id from pages order by id"]
|
20
|
+
rows = ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
|
21
|
+
if rows
|
22
|
+
rows.each{ |row| self.delay.cache(row['id'].to_i) }
|
23
|
+
end
|
23
24
|
end
|
24
25
|
|
25
26
|
def self.cache(page_id)
|
data/lib/caboose/version.rb
CHANGED
data/lib/tasks/caboose.rake
CHANGED
@@ -2,8 +2,13 @@ require "caboose/version"
|
|
2
2
|
|
3
3
|
namespace :caboose do
|
4
4
|
|
5
|
-
desc "
|
5
|
+
desc "Update expired caches and cache pages that aren't cached"
|
6
6
|
task :cache_pages => :environment do
|
7
|
+
Caboose::PageCacher.refresh
|
8
|
+
end
|
9
|
+
|
10
|
+
desc "Cache all pages"
|
11
|
+
task :cache_all_pages => :environment do
|
7
12
|
Caboose::PageCacher.cache_all
|
8
13
|
end
|
9
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
@@ -509,6 +509,7 @@ files:
|
|
509
509
|
- app/helpers/caboose/products_helper.rb
|
510
510
|
- app/mailers/caboose/login_mailer.rb
|
511
511
|
- app/mailers/caboose/orders_mailer.rb
|
512
|
+
- app/models/caboose/#Untitled-1#
|
512
513
|
- app/models/caboose/ab_option.rb
|
513
514
|
- app/models/caboose/ab_testing.rb
|
514
515
|
- app/models/caboose/ab_value.rb
|