FIX: clear emoji cache after restore

This commit is contained in:
Régis Hanol 2015-03-17 17:29:18 +01:00
parent aa41a9ce70
commit 56e01a766b
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,7 @@ module BackupRestore
migrate_database
reconnect_database
reload_site_settings
clear_emoji_cache
disable_readonly_mode
### READ-ONLY / END ###
@ -267,6 +268,11 @@ module BackupRestore
SiteSetting.refresh!
end
def clear_emoji_cache
log "Clearing emoji cache..."
Emoji.clear_cache
end
def extract_uploads
if `tar --list --file #{@tar_filename} | grep 'uploads/'`.present?
log "Extracting uploads..."