File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/phpFastCache/Drivers/Sqlite Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -308,20 +308,18 @@ protected function driverRead(CacheItemInterface $item)
308308 {
309309 try {
310310 $ stm = $ this ->getDb ($ item ->getKey ())
311- ->prepare ("SELECT * FROM `caching` WHERE `keyword`=:keyword AND (`exp` >= :U) LIMIT 1 " );
311+ ->prepare ("SELECT * FROM `caching` WHERE `keyword`=:keyword LIMIT 1 " );
312312 $ stm ->execute ([
313313 ':keyword ' => $ item ->getKey (),
314- ':U ' => time (),
315314 ]);
316315 $ row = $ stm ->fetch (PDO ::FETCH_ASSOC );
317316
318317 } catch (PDOException $ e ) {
319318 try {
320319 $ stm = $ this ->getDb ($ item ->getKey (), true )
321- ->prepare ("SELECT * FROM `caching` WHERE `keyword`=:keyword AND (`exp` >= :U) LIMIT 1 " );
320+ ->prepare ("SELECT * FROM `caching` WHERE `keyword`=:keyword LIMIT 1 " );
322321 $ stm ->execute ([
323322 ':keyword ' => $ item ->getKey (),
324- ':U ' => time (),
325323 ]);
326324 $ row = $ stm ->fetch (PDO ::FETCH_ASSOC );
327325 } catch (PDOException $ e ) {
You can’t perform that action at this time.
0 commit comments