diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 649516a03..e1d6fe0cb 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -90,6 +90,7 @@ class MyshixunsController < ApplicationController # params[:pics] = "a.png,b.png,c.png" def training_task_status + logger.info("##################training_task_status_start#{jsonTestDetails['buildID']}") ActiveRecord::Base.transaction do begin t1 = Time.now diff --git a/app/models/department.rb b/app/models/department.rb index bf5c3a90e..c019862db 100644 --- a/app/models/department.rb +++ b/app/models/department.rb @@ -3,8 +3,7 @@ class Department < ApplicationRecord has_many :department_members, dependent: :destroy - after_create_commit :reset_data_cache - after_update_commit :reset_data_cache + after_commit :reset_data_cache def self.cached_names_data(school) Rails.cache.fetch(names_data_cache_key(school.id), expires_in: 7.days) do @@ -16,9 +15,7 @@ class Department < ApplicationRecord def reset_data_cache # 清除部门名称缓存 - if new_record? || name_previously_changed? - Rails.cache.delete(self.class.names_data_cache_key(school_id)) - end + Rails.cache.delete(self.class.names_data_cache_key(school_id)) end def self.names_data_cache_key(school_id) diff --git a/public/react/src/modules/user/Interestpage.js b/public/react/src/modules/user/Interestpage.js index 4c3c39406..b3abfe1a4 100644 --- a/public/react/src/modules/user/Interestpage.js +++ b/public/react/src/modules/user/Interestpage.js @@ -258,15 +258,15 @@ class InterestpageComponent extends Component {
选择你可能感兴趣的内容
diff --git a/public/react/src/modules/user/InterestpageMax.js b/public/react/src/modules/user/InterestpageMax.js index 82b3e7e0f..a53c1bbe0 100644 --- a/public/react/src/modules/user/InterestpageMax.js +++ b/public/react/src/modules/user/InterestpageMax.js @@ -260,15 +260,15 @@ class InterestpageMax extends Component {