From 206e42383872d2fc354fce01f8f3aa1f1d690047 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Thu, 4 Aug 2005 12:05:32 +0000 Subject: [PATCH] Make spartacus also purge plugin list --- .../serendipity_event_spartacus.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php index 1314a0c..51a3698 100644 --- a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php +++ b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php @@ -66,6 +66,8 @@ class serendipity_event_spartacus extends serendipity_event } function cleanup() { + global $serendipity; + // Purge cached XML files. $files = serendipity_traversePath($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE, '', false, '/package_.+\.xml$/'); @@ -77,6 +79,9 @@ class serendipity_event_spartacus extends serendipity_event printf(DELETING_FILE . '
', $file['name']); @unlink($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE . '/' . $file['name']); } + + serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}pluginlist"); + serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}plugincategories"); } function &getMirrors($type = 'xml', $loc = false) { -- 2.39.5