plugins/mod_pep.lua
changeset 11726 bc2d3f110a39
parent 11635 6641ca266d94
child 11728 86e68c0a4f05
--- a/plugins/mod_pep.lua	Thu Jul 22 21:01:11 2021 +0200
+++ b/plugins/mod_pep.lua	Wed Jul 21 23:02:25 2021 +0200
@@ -110,14 +110,9 @@
 	local driver = storagemanager.get_driver(module.host, "pep_data");
 	return function (config, node)
 		local max_items = tonumber_max_items(config["max_items"]);
-		if config["persist_items"] then
-			module:log("debug", "Creating new persistent item store for user %s, node %q", username, node);
-			local archive = driver:open("pep_"..node, "archive");
-			return lib_pubsub.archive_itemstore(archive, max_items, username, node, false);
-		else
-			module:log("debug", "Creating new ephemeral item store for user %s, node %q", username, node);
-			return cache.new(max_items);
-		end
+		module:log("debug", "Creating new persistent item store for user %s, node %q", username, node);
+		local archive = driver:open("pep_"..node, "archive");
+		return lib_pubsub.archive_itemstore(archive, max_items, username, node, false);
 	end
 end