equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Cache |
16 * @package Zend_Cache |
17 * @subpackage Zend_Cache_Backend |
17 * @subpackage Zend_Cache_Backend |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Sqlite.php 20096 2010-01-06 02:05:09Z bkarwin $ |
20 * @version $Id: Sqlite.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * @see Zend_Cache_Backend_Interface |
25 * @see Zend_Cache_Backend_Interface |
32 require_once 'Zend/Cache/Backend.php'; |
32 require_once 'Zend/Cache/Backend.php'; |
33 |
33 |
34 /** |
34 /** |
35 * @package Zend_Cache |
35 * @package Zend_Cache |
36 * @subpackage Zend_Cache_Backend |
36 * @subpackage Zend_Cache_Backend |
37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
37 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
39 */ |
39 */ |
40 class Zend_Cache_Backend_Sqlite extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface |
40 class Zend_Cache_Backend_Sqlite extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface |
41 { |
41 { |
42 /** |
42 /** |
528 { |
528 { |
529 if ($this->_options['automatic_vacuum_factor'] > 0) { |
529 if ($this->_options['automatic_vacuum_factor'] > 0) { |
530 $rand = rand(1, $this->_options['automatic_vacuum_factor']); |
530 $rand = rand(1, $this->_options['automatic_vacuum_factor']); |
531 if ($rand == 1) { |
531 if ($rand == 1) { |
532 $this->_query('VACUUM'); |
532 $this->_query('VACUUM'); |
533 @sqlite_close($this->_getConnection()); |
|
534 } |
533 } |
535 } |
534 } |
536 } |
535 } |
537 |
536 |
538 /** |
537 /** |