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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 923bd02d6313d7aec263b75f8e096ace3243c674
|
4
|
+
data.tar.gz: 39049d47ec5250fd9bd11865e64d126de34d40cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
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
|
-
|
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
|
-
|
22
|
+
# rows.each{ |row| self.delay(:queue => 'caboose_cache').cache(row['id'].to_i) }
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
data/lib/caboose/version.rb
CHANGED
data/lib/tasks/caboose.rake
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|