1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 07:50:23 +01:00

clear apc cache

This commit is contained in:
Fredrick Brennan 2014-09-20 15:19:14 +00:00
parent 2334566da3
commit 6f2376b1e3

View File

@ -4,7 +4,7 @@ include "inc/functions.php";
if (!(php_sapi_name() == "cli")) { if (!(php_sapi_name() == "cli")) {
die('nope'); die('nope');
} }
$protected = array('burgers', 'cow', 'wilno'); $protected = array('burgers', 'cow', 'wilno', 'cute');
$q = query("SELECT uri FROM boards"); $q = query("SELECT uri FROM boards");
$boards = $q->fetchAll(PDO::FETCH_COLUMN); $boards = $q->fetchAll(PDO::FETCH_COLUMN);
$now = new DateTime(); $now = new DateTime();
@ -145,4 +145,4 @@ cache::delete('all_boards_uri');
cache::delete('all_boards'); cache::delete('all_boards');
rebuildThemes('boards'); rebuildThemes('boards');
$query = query('DELETE FROM board_create WHERE uri NOT IN (SELECT uri FROM boards);') or error(db_error()); $query = query('DELETE FROM board_create WHERE uri NOT IN (SELECT uri FROM boards);') or error(db_error());
file_get_contents('https://8chan.co/listboards.php'); file_get_contents('http://127.0.0.1/listboards.php');