WebDAV caching is optionable. Default is off.
This commit is contained in:
parent
1e30425f1e
commit
80efa44749
@ -127,6 +127,7 @@ class DmsfFileRevisionTest < RedmineDmsf::Test::UnitTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_save_and_destroy_with_cache
|
def test_save_and_destroy_with_cache
|
||||||
|
Setting.plugin_redmine_dmsf['dmsf_webdav_caching_enabled'] = '1'
|
||||||
Rails.cache.clear
|
Rails.cache.clear
|
||||||
# save
|
# save
|
||||||
cache_key = @revision1.propfind_cache_key
|
cache_key = @revision1.propfind_cache_key
|
||||||
|
|||||||
@ -167,6 +167,7 @@ class DmsfFileTest < RedmineDmsf::Test::UnitTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_save_and_destroy_with_cache
|
def test_save_and_destroy_with_cache
|
||||||
|
Setting.plugin_redmine_dmsf['dmsf_webdav_caching_enabled'] = '1'
|
||||||
Rails.cache.clear
|
Rails.cache.clear
|
||||||
# save
|
# save
|
||||||
cache_key = @file5.propfind_cache_key
|
cache_key = @file5.propfind_cache_key
|
||||||
|
|||||||
@ -143,6 +143,7 @@ class DmsfFolderTest < RedmineDmsf::Test::UnitTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_save_and_destroy_with_cache
|
def test_save_and_destroy_with_cache
|
||||||
|
Setting.plugin_redmine_dmsf['dmsf_webdav_caching_enabled'] = '1'
|
||||||
Rails.cache.clear
|
Rails.cache.clear
|
||||||
# save
|
# save
|
||||||
cache_key = @folder4.propfind_cache_key
|
cache_key = @folder4.propfind_cache_key
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user