Skip to content

Commit

Permalink
Merge 81ddbe0 into 6fbc125
Browse files Browse the repository at this point in the history
  • Loading branch information
itowtips committed Jun 1, 2021
2 parents 6fbc125 + 81ddbe0 commit 8f48497
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/models/translate/request_buffer.rb
Expand Up @@ -126,7 +126,9 @@ def translate
sleep @interval
end

@site.update!
if !SS.config.cms.enable_lgwan
@site.update!
end

@caches.each do |cache|
if cache.text.blank?
Expand Down
1 change: 1 addition & 0 deletions app/models/translate/text_cache.rb
Expand Up @@ -5,6 +5,7 @@ class Translate::TextCache
include Cms::SitePermission

set_permission_name "cms_tools", :use
store_in_repl_master

index({ updated: -1 })
index({ site_id: 1, hexdigest: 1 })
Expand Down
2 changes: 1 addition & 1 deletion app/views/translate/agents/parts/tool/index.erb
Expand Up @@ -25,7 +25,7 @@ $("#<%= id %>").on("change", function () {
location.href = url;
} else {
url = SS_Kana.url(location.pathname, false);
url = SS_Translate.url(location.pathname, false);
url = SS_Translate.url(url, false);
location.href = url;
}
});
Expand Down

0 comments on commit 8f48497

Please sign in to comment.