summaryrefslogtreecommitdiffstats
path: root/public/admin
diff options
context:
space:
mode:
authorrdalverny <rdalverny@gmail.com>2022-01-22 21:41:44 +0100
committerrdalverny <rdalverny@gmail.com>2022-01-22 21:41:44 +0100
commit1ebace1417563a74967e0c45fb3998a26770eb47 (patch)
treeadf45a00e3a077047a350a7763b0a52a2ce4ad1b /public/admin
parent5a0c2d333ff41ec4da6a4d58bc1553beeee1affa (diff)
downloadplanet-1ebace1417563a74967e0c45fb3998a26770eb47.tar
planet-1ebace1417563a74967e0c45fb3998a26770eb47.tar.gz
planet-1ebace1417563a74967e0c45fb3998a26770eb47.tar.bz2
planet-1ebace1417563a74967e0c45fb3998a26770eb47.tar.xz
planet-1ebace1417563a74967e0c45fb3998a26770eb47.zip
Prune cached HTML when changing feeds list
Diffstat (limited to 'public/admin')
-rwxr-xr-xpublic/admin/subscriptions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/public/admin/subscriptions.php b/public/admin/subscriptions.php
index 418e354..236ac46 100755
--- a/public/admin/subscriptions.php
+++ b/public/admin/subscriptions.php
@@ -22,6 +22,9 @@ if (isset($_POST['upload']) &&
$newOpml = new Opml();
$newOpml->parse(file_get_contents($_FILES['opml']['tmp_name']));
OpmlManager::save($newOpml, $opmlFile);
+
+ Cache::setStore($PlanetConfig->getCacheDir() . '/');
+ Cache::prune("html");
} elseif (isset($_POST['opml']) || isset($_POST['add'])) {
// Load old OPML
$oldOpml = OpmlManager::load($opmlFile);
@@ -79,6 +82,9 @@ if (isset($_POST['upload']) &&
// Save new OPML
OpmlManager::save($newOpml, $opmlFile);
+
+ Cache::setStore($PlanetConfig->getCacheDir() . '/');
+ Cache::prune("html");
}
header("Location: index.php");
die();