summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-28 18:17:58 +0400
committerAndrew Dolgov <[email protected]>2013-04-28 18:17:58 +0400
commitd48398e647e8d4425629c4a5ecb1193c15732924 (patch)
tree931b58c10bfa8c6b9bf2d28c988dfc4dc3b0459f /classes/pluginhost.php
parent5e1f7be5f1b704f85114740372fa6e6aa4273446 (diff)
pluginhost: remove session cache for storage
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r--classes/pluginhost.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 302fdbaeb..8e2aefcf1 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -43,9 +43,8 @@ class PluginHost {
function __construct() {
$this->dbh = Db::get();
- $this->storage = $_SESSION["plugin_storage"];
- if (!$this->storage) $this->storage = array();
+ $this->storage = array();
}
private function __clone() {
@@ -252,7 +251,7 @@ class PluginHost {
}
function load_data($force = false) {
- if ($this->owner_uid && (!$_SESSION["plugin_storage"] || $force)) {
+ if ($this->owner_uid) {
$plugin = $this->dbh->escape_string($plugin);
$result = $this->dbh->query("SELECT name, content FROM ttrss_plugin_storage
@@ -261,8 +260,6 @@ class PluginHost {
while ($line = $this->dbh->fetch_assoc($result)) {
$this->storage[$line["name"]] = unserialize($line["content"]);
}
-
- $_SESSION["plugin_storage"] = $this->storage;
}
}
@@ -302,8 +299,6 @@ class PluginHost {
$this->storage[$idx][$name] = $value;
- $_SESSION["plugin_storage"] = $this->storage;
-
if ($sync) $this->save_data(get_class($sender));
}
@@ -331,8 +326,6 @@ class PluginHost {
$this->dbh->query("DELETE FROM ttrss_plugin_storage WHERE name = '$idx'
AND owner_uid = " . $this->owner_uid);
-
- $_SESSION["plugin_storage"] = $this->storage;
}
}