table_forum_postcache.php 612 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: table_forum_postcache.php 28498 2012-03-01 11:21:16Z monkey $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_forum_postcache extends discuz_table
  12. {
  13. public function __construct() {
  14. $this->_table = 'forum_postcache';
  15. $this->_pk = 'pid';
  16. $this->_pre_cache_key = 'forum_postcache_';
  17. parent::__construct();
  18. }
  19. public function delete_by_dateline($dateline) {
  20. return DB::delete($this->_table, DB::field('dateline', $dateline, '<'));
  21. }
  22. }
  23. ?>