diff --git a/src/classes/cache/blog.php b/src/classes/cache/blog.php index dd460d4f..cb1d783e 100644 --- a/src/classes/cache/blog.php +++ b/src/classes/cache/blog.php @@ -8,6 +8,17 @@ namespace wishthis\Cache; class Blog extends Cache { + /** + * Private + */ + protected function getFilepath(): string + { + return parent::getFilepath() . '.json'; + } + + /** + * Public + */ public function __construct($url) { parent::__construct($url); diff --git a/src/classes/cache/cache.php b/src/classes/cache/cache.php index dc067f48..3e5084ef 100644 --- a/src/classes/cache/cache.php +++ b/src/classes/cache/cache.php @@ -33,7 +33,7 @@ class Cache protected function getFilepath(): string { - return $this->directory . '/' . $this->getIdentifier() . '.json'; + return $this->directory . '/' . $this->getIdentifier(); } protected function write(mixed $value): void diff --git a/src/classes/cache/embed.php b/src/classes/cache/embed.php index 601f7813..4f49cd2a 100644 --- a/src/classes/cache/embed.php +++ b/src/classes/cache/embed.php @@ -12,6 +12,14 @@ namespace wishthis\Cache; class Embed extends Cache { + /** + * Private + */ + protected function getFilepath(): string + { + return parent::getFilepath() . '.json'; + } + /** * Public */