You are viewing a plain text version of this content. The canonical link for it is here.
Posted to olio-commits@incubator.apache.org by sh...@apache.org on 2008/10/20 20:11:09 UTC
svn commit: r706397 -
/incubator/olio/webapp/php/trunk/public_html/fileService.php
Author: sheetal
Date: Mon Oct 20 13:11:08 2008
New Revision: 706397
URL: http://svn.apache.org/viewvc?rev=706397&view=rev
Log:
updating fileService.php under php webapp
Modified:
incubator/olio/webapp/php/trunk/public_html/fileService.php
Modified: incubator/olio/webapp/php/trunk/public_html/fileService.php
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/php/trunk/public_html/fileService.php?rev=706397&r1=706396&r2=706397&view=diff
==============================================================================
--- incubator/olio/webapp/php/trunk/public_html/fileService.php (original)
+++ incubator/olio/webapp/php/trunk/public_html/fileService.php Mon Oct 20 13:11:08 2008
@@ -30,7 +30,7 @@
* the client.
*/
require_once("../etc/config.php");
-$cache = CacheSystem::getInstance();
+//$cache = CacheSystem::getInstance();
$mimeTypes = array();
@@ -50,7 +50,7 @@
$fileName = $_GET['file'];
if ($fileName != "") {
- $cacheFlag = $_GET['cache'];
+ //$cacheFlag = $_GET['cache'];
$pathInfo = pathinfo($fileName);
$extension = $pathInfo['extension'];
$contentType = $mimeTypes[$extension];
@@ -58,7 +58,7 @@
$fs = FileSystem::getInstance();
$paths = $fs->getPaths($fileName);
- $cache->set($fileName, $paths, 0, Web20::$config['cacheExpire']);
+ //$cache->set($fileName, $paths, 0, Web20::$config['cacheExpire']);
$path_keys = array_keys($paths);
$pathkeycount = count($path_keys);
$i=0;