This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
XRay
mirror of
https://github.com/aaronpk/XRay.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
77
Wiki
Activity
Browse Source
add config option to enable caching
pull/39/head
Aaron Parecki
8 years ago
parent
1f6de10aba
commit
9006718ca5
2 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
config.template.php
+1
-1
controllers/Parse.php
+ 1
- 0
config.template.php
View File
@ -1,4 +1,5 @@
<
?
php
class
Config
{
public
static
$base
=
'http://example.com'
;
public
static
$cache
=
false
;
}
+ 1
- 1
controllers/Parse.php
View File
@ -13,7 +13,7 @@ class Parse {
public
function
__construct
()
{
$this
->
http
=
new
p3k\HTTP
();
if
(
class_exists
(
'Memcache'
))
{
if
(
Config
::
$cache
&&
class_exists
(
'Memcache'
))
{
$this
->
mc
=
new
Memcache
();
$this
->
mc
->
addServer
(
'127.0.0.1'
);
}
Write
Preview
Loading…
Cancel
Save