caboose-cms 0.9.59 → 0.9.60

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cc999e2713eaa43959e57080594db87e7a3041c
4
- data.tar.gz: 34d55765c6d0d93f9399773084cd10b436f85cef
3
+ metadata.gz: 923bd02d6313d7aec263b75f8e096ace3243c674
4
+ data.tar.gz: 39049d47ec5250fd9bd11865e64d126de34d40cc
5
5
  SHA512:
6
- metadata.gz: 529bc8a38f9166a44936cad4bbba5ca53053be83c1ec9af87f8798ddffa93dca508eddc6284d8a734b8575f16557bf6a222f5355b438aadc1936d1c63dc13262
7
- data.tar.gz: 75546cd2c94716e56ecb0815790a1066a35873124f491d9f1730c1fba06d8daed0ab254c76faba31d58a1c40bf6f41d64bb65fcca93db72208417535c1595d42
6
+ metadata.gz: afcf3207e47b6c4e6f149466ab14c60e1696bf570184104662afb01c338243a9038adcdb4280648ba075e2130f32c70a17af2fcbdc5ebf2e94166fe5ef43db58
7
+ data.tar.gz: 6a95b7f18be9fef24e56cceacc1b699f0c57aa089082e3760a20a7c71ae1069ddbf5b175a6fda40d2f3e8f305057797d559515bdd48f8cda28d6bdaca4a69249
@@ -148,7 +148,7 @@ module Caboose
148
148
  # Trigger the page cache to be updated
149
149
  query = ["update page_cache set refresh = true where page_id in (select distinct(page_id) from blocks where block_type_id = ?)", bt.id]
150
150
  ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
151
- PageCacher.delay(:queue => 'caboose_cache').refresh
151
+ # PageCacher.delay(:queue => 'caboose_cache').refresh
152
152
 
153
153
  resp.success = save && bt.save
154
154
  render :json => resp
@@ -444,16 +444,16 @@ module Caboose
444
444
  end
445
445
 
446
446
  # Trigger the page cache to be updated
447
- if params[:page_id]
448
- pc = PageCache.where(:page_id => b.page_id).first
449
- if pc
450
- pc.refresh = true
451
- pc.save
452
- PageCacher.delay(:queue => 'caboose_cache').refresh
453
- else
454
- PageCacher.delay(:queue => 'caboose_cache').cache(b.page_id)
455
- end
456
- end
447
+ # if params[:page_id]
448
+ # pc = PageCache.where(:page_id => b.page_id).first
449
+ # if pc
450
+ # pc.refresh = true
451
+ # pc.save
452
+ # PageCacher.delay(:queue => 'caboose_cache').refresh
453
+ # else
454
+ # PageCacher.delay(:queue => 'caboose_cache').cache(b.page_id)
455
+ # end
456
+ # end
457
457
 
458
458
  resp.success = save && b.save
459
459
  b.create_children
@@ -4,14 +4,14 @@ module Caboose
4
4
 
5
5
  def self.refresh
6
6
  PageCache.where(:refresh => true).all.each do |pc|
7
- self.delay(:queue => 'caboose_cache').cache(pc.page_id)
7
+ # self.delay(:queue => 'caboose_cache').cache(pc.page_id)
8
8
  end
9
9
 
10
10
  # Make sure all pages are cached
11
11
  query = ["select id from pages where id not in (select distinct(page_id) from page_cache)"]
12
12
  rows = ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
13
13
  if rows
14
- rows.each{ |row| self.delay(:queue => 'caboose_cache').cache(row['id'].to_i) }
14
+ # rows.each{ |row| self.delay(:queue => 'caboose_cache').cache(row['id'].to_i) }
15
15
  end
16
16
  end
17
17
 
@@ -19,7 +19,7 @@ module Caboose
19
19
  query = ["select id from pages order by id"]
20
20
  rows = ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
21
21
  if rows
22
- rows.each{ |row| self.delay(:queue => 'caboose_cache').cache(row['id'].to_i) }
22
+ # rows.each{ |row| self.delay(:queue => 'caboose_cache').cache(row['id'].to_i) }
23
23
  end
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.59'
2
+ VERSION = '0.9.60'
3
3
  end
@@ -346,12 +346,12 @@ namespace :caboose do
346
346
 
347
347
  desc "Update expired caches and cache pages that aren't cached"
348
348
  task :cache_pages => :environment do
349
- Caboose::PageCacher.delay(:queue => 'caboose_cache').refresh
349
+ # Caboose::PageCacher.delay(:queue => 'caboose_cache').refresh
350
350
  end
351
351
 
352
352
  desc "Cache all pages"
353
353
  task :cache_all_pages => :environment do
354
- Caboose::PageCacher.delay(:queue => 'caboose_cache').cache_all
354
+ # Caboose::PageCacher.delay(:queue => 'caboose_cache').cache_all
355
355
  end
356
356
 
357
357
  desc "Run rspec tests on Caboose"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.59
4
+ version: 0.9.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-27 00:00:00.000000000 Z
11
+ date: 2017-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg