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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmY3ZmMwOTIzYzI2ZmY1YmZiYmVmY2YyZWYyYTFhM2ZiNDg5ZWU5NQ==
4
+ OTg1ODMwMTM5YTIyNmRkNGQzZmUyYzk4ZDEzYjhiYWVlYTY0MThjZA==
5
5
  data.tar.gz: !binary |-
6
- MDY4YmQyYTFiNjY4ZjI3Njc3MGY0N2RjMGE3MTU2ZmQ3YzlhMWQ0Nw==
6
+ ZjQ1NmRlYTYxZTUwZmY3MWE0YzAwMjQyYzEwOTg3NWJlMjc3MDNmMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWU5YjNlNzU3YjRiYjNhYTdjNWY2MTQxZTcwMDY2NGZlM2NiNzg0Zjk4ZGUy
10
- NDk1MTQ0YTYwMmRlNzM5ZTljYjBhODg4YWQyN2MxZjY4NmZmNmM5NjZlZDUw
11
- MTA4ZGYzNWNhMGU1MmYyMTE5OGUzMmE1MzMzMDZhOTJhY2EwYjE=
9
+ MDk1ZjNhNzQzNjU4NGZkNWU0OWMyM2Q0Zjc4ZmIyYmQ0N2FkZTNhNGUwYjQ5
10
+ MzdmZDMyNTJmYzc1MTFhMDJjMGNiMWQyMzM0NGU5ZjRjMGVlNDA3YTQxNjBl
11
+ NTFiYTdmMTgyMjZkMzMxMjJlZDAyMDg0MWE4NmMxM2Y4OWZhMjU=
12
12
  data.tar.gz: !binary |-
13
- ZDJkMWFmYzhlZjY4MmU2MWM3NDU2OTUwMWU1NTg3ZGE1NzhmMjc3Y2I3Nzdh
14
- MjYyZGI2ODlmMGE2ZDM5ZjFlNGZjNDE1YWMzOThmNTdkMDY5MmVjZmRlYmNm
15
- MGUzMDkxNGRjMzFhZjg5YmU3NzIzMTc3NzU2M2JjODUwNGQyZmY=
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
- Page.reorder(:id).all.each do |p|
20
- puts "Caching #{p.title}..."
21
- self.cache(p)
22
- end
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)
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.44'
2
+ VERSION = '0.5.45'
3
3
  end
@@ -2,8 +2,13 @@ require "caboose/version"
2
2
 
3
3
  namespace :caboose do
4
4
 
5
- desc "Cache pages"
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.44
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