@@ -108,14 +108,14 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function cleanCache($type = '') |
110 | 110 | { |
111 | - if($type == 'expired') |
|
112 | - $query = 'DELETE FROM cache WHERE ttl >= ' . time().';'; |
|
111 | + if ($type == 'expired') |
|
112 | + $query = 'DELETE FROM cache WHERE ttl >= ' . time() . ';'; |
|
113 | 113 | else |
114 | 114 | $query = 'DELETE FROM cache;'; |
115 | 115 | |
116 | 116 | $result = $this->cacheDB->exec($query); |
117 | 117 | |
118 | - $query = 'VACUUM;'; |
|
118 | + $query = 'VACUUM;'; |
|
119 | 119 | $this->cacheDB->exec($query); |
120 | 120 | |
121 | 121 | return $result; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | // If its invalid, use SMF's. |
158 | 158 | if (is_null($dir) || !is_writable($dir)) |
159 | - if(is_null($cachedir_sqlite) || !is_writable($cachedir_sqlite)) |
|
159 | + if (is_null($cachedir_sqlite) || !is_writable($cachedir_sqlite)) |
|
160 | 160 | $this->cachedir = $cachedir; |
161 | 161 | else |
162 | 162 | $this->cachedir = $cachedir_sqlite; |