From 98bd24f8b479132ca3f2d884749b738e9e6203e3 Mon Sep 17 00:00:00 2001 From: Giuseppe Castagno Date: Sat, 20 Aug 2016 15:45:07 +0200 Subject: Related: tdf#82677, implement a PROPFIND 'propname' request cache PROPFIND 'propname' is the special usage to retrieve all the properties available on the URI resource, their names only. See for PROPFIND 'propname' definition. Add cache usage in Content::getProperties as well. The caching model is simple: a simple lifetime limit of 10 seconds to declare the property name list stale and request another list, accessing the Net. This should reduce the number of PROPFIND calls on the Net. Change-Id: Ie4ebd946dd81583dc964a62c7744f3e2c716c737 Reviewed-on: https://gerrit.libreoffice.org/28273 Tested-by: Jenkins Reviewed-by: Giuseppe Castagno --- ucb/CppunitTest_ucb_webdav_propfindcache.mk | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 ucb/CppunitTest_ucb_webdav_propfindcache.mk (limited to 'ucb/CppunitTest_ucb_webdav_propfindcache.mk') diff --git a/ucb/CppunitTest_ucb_webdav_propfindcache.mk b/ucb/CppunitTest_ucb_webdav_propfindcache.mk new file mode 100644 index 000000000000..ebbaee7898ed --- /dev/null +++ b/ucb/CppunitTest_ucb_webdav_propfindcache.mk @@ -0,0 +1,55 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +#************************************************************************* +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +#************************************************************************* + +$(eval $(call gb_CppunitTest_CppunitTest,ucb_webdav_propfindcache)) + +$(eval $(call gb_CppunitTest_use_api,ucb_webdav_propfindcache, \ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,ucb_webdav_propfindcache, \ + comphelper \ + cppu \ + cppuhelper \ + sal \ + salhelper \ + test \ + ucbhelper \ +)) + +$(eval $(call gb_CppunitTest_use_library_objects,ucb_webdav_propfindcache, \ + ucpdav1 \ +)) + +$(eval $(call gb_CppunitTest_use_externals,ucb_webdav_propfindcache,\ + boost_headers \ + libxml2 \ + neon \ + openssl \ +)) + +$(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_propfindcache,\ + officecfg/registry \ +)) + +$(eval $(call gb_CppunitTest_add_exception_objects,ucb_webdav_propfindcache, \ + ucb/qa/cppunit/webdav/webdav_propfindcache \ +)) + +$(eval $(call gb_CppunitTest_set_include,ucb_webdav_propfindcache,\ + $$(INCLUDE) \ + -I$(SRCDIR)/ucb/source/ucp/webdav-neon \ +)) + +$(eval $(call gb_CppunitTest_use_static_libraries,ucb_webdav_propfindcache)) + +# vim: set noet sw=4 ts=4: -- cgit