From cc23528459e8ddad9028d7b2b05fb36835e5b2e7 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 10 Nov 2018 13:10:14 +0000 Subject: [PATCH] subdirs for tag_list caches, as those get huge... --- ext/tag_list/main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index 81b7f3a6..711d2d40 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -226,7 +226,7 @@ class TagList extends Extension { $starts_with = $this->get_starts_with(); // check if we have a cached version - $cache_key = data_path("cache/tag_cloud-" . md5("tc" . $tags_min . $starts_with) . ".html"); + $cache_key = warehouse_path("cache/tag_cloud", md5("tc" . $tags_min . $starts_with)); if(file_exists($cache_key)) {return file_get_contents($cache_key);} // SHIT: PDO/pgsql has problems using the same named param twice -_-;; @@ -266,7 +266,7 @@ class TagList extends Extension { $starts_with = $this->get_starts_with(); // check if we have a cached version - $cache_key = data_path("cache/tag_alpha-" . md5("ta" . $tags_min . $starts_with) . ".html"); + $cache_key = warehouse_path("cache/tag_alpha", md5("ta" . $tags_min . $starts_with)); if(file_exists($cache_key)) {return file_get_contents($cache_key);} $tag_data = $database->get_pairs($database->scoreql_to_sql(" @@ -328,7 +328,7 @@ class TagList extends Extension { if ($tags_min < 1){ $tags_min = 1; } // check if we have a cached version - $cache_key = data_path("cache/tag_popul-" . md5("tp" . $tags_min) . ".html"); + $cache_key = warehouse_path("cache/tag_popul", md5("tp" . $tags_min)); if(file_exists($cache_key)) {return file_get_contents($cache_key);} $tag_data = $database->get_all("