aboutsummaryrefslogtreecommitdiffstats
path: root/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'app.php')
-rw-r--r--app.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/app.php b/app.php
index 5dc16a38a..86db0b9e4 100644
--- a/app.php
+++ b/app.php
@@ -22,16 +22,19 @@
* option) any later version.
*/
-require 'lib/Pinq/Controller.php';
-require 'lib/Pinq/App.php';
-
-$pc = new Pinq_Controller(__DIR__, $_SERVER);
-$pc->init();
-
$routes = array(
-// 'downloads' => 'MGA_Downloads'
+ //'downloads' => 'MGA_Downloads'
);
-$pc->run($routes);
+require 'lib/Pinq/Controller.php';
+require 'lib/Pinq/App.php';
+require 'lib/Pinq/Cache.php';
+$cache = new Pinq_Memcache_Cache(20);
+Pinq_Controller::run(
+ __DIR__,
+ $routes,
+ $_SERVER,
+ new Pinq_Memcache_Cache(20)
+);