From: garvinhicking Date: Thu, 4 Aug 2005 12:05:32 +0000 (+0000) Subject: Make spartacus also purge plugin list X-Git-Tag: 0.9~234 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=206e42383872d2fc354fce01f8f3aa1f1d690047;p=s9y.git Make spartacus also purge plugin list --- 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) {