aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--caches/SQLiteCache.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/caches/SQLiteCache.php b/caches/SQLiteCache.php
index b3caac34..5cbb3772 100644
--- a/caches/SQLiteCache.php
+++ b/caches/SQLiteCache.php
@@ -9,6 +9,9 @@ class SQLiteCache implements CacheInterface {
private $db = null;
public function __construct() {
+ if (!extension_loaded('sqlite3'))
+ die('"sqlite3" extension not loaded. Please check "php.ini"');
+
$file = PATH_CACHE . 'cache.sqlite';
if (!is_file($file)) {