/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk
407 by Suren A. Chilingaryan
Support dropping caches since the specified timestamp
1
<?php
2
3
$_POST['props'] = "{\"db_server\": \"precmm0\", \"db_name\": \"PrecMagnet\", \"db_group\": \"NorthRing\"}";
4
5
$curdir = getcwd();
6
7
if (preg_match("/(.*)cache.php$/", $_SERVER['SCRIPT_FILENAME'], $m)) @chdir($m[1]);
8
9
require("../adei.php");
10
11
12
try {
13
    $req = new DATARequest();
14
    $cache = $req->CreateCache();
15
    $postfix =  $cache->GetCachePostfix();
16
    $cache->Drop($postfix, "1424344528");
17
} catch (ADEIException $ae) {
18
    throw $ae;
19
}
20
21
?>