CodeIgniter\Cache\Exceptions\CacheException
Cache unable to write to /www/wwwroot/dt/cache/file/.
SYSTEMPATH/Cache/Handlers/FileHandler.php at line 61
54 ];55 }5657
$this->path = ! empty($config->file['storePath']) ? $config->file
['storePath'] : WRITEPATH . 'cache';58 $this->path
= rtrim($this->path, '/') . '/';5960 if
(! is_really_writable($this->path)) {
61 throw CacheException::forUnableToWrite
($this->path);
62 }6364 $this->mode =
$config->file['mode'] ?? 0640;65 $this->prefix
= $config->prefix;66 }6768 /**
61 throw CacheException::forUnableToWrite
($this->path);
62 }6364 $this->mode =
$config->file['mode'] ?? 0640;65 $this->prefix =
$config->prefix;66 }6768 /**
SYSTEMPATH/Cache/Handlers/FileHandler.php : 61 —
CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite
( arguments )
54 ];55 }5657
$this->path = ! empty($config->file['storePath']) ? $config->
file
['storePath'] : WRITEPATH . 'cache';58 $this->
path =
rtrim($this->path, '/') . '/';5960 if
(! is_really_
writable($this->path)) {
61 throw CacheException::forUnableToWrite
($this->
path);
62 }6364 $this->mode =
$config->file
['mode'] ?? 0640;65 $this->prefix = $config->
prefix;66 }6768 /**
SYSTEMPATH/Cache/CacheFactory.php : 46 — CodeIgniter\Cache\
Handlers\FileHandler->__construct ( arguments )
39 $backup = ! empty($backup) ? $backup :
$config->
backupHandler;4041 if (! array_key_exists
($handler,
$config->validHandlers) || ! array_key_exists($backup, $config->
validHandlers)) {42 throw CacheException::
forHandlerNotFound();43 }4445
// Get
an instance of our handler.
46 $adapter =
new $config->validHandlers[$handler]
($config);
4748 if (! $adapter->isSupported()) {49 $adapter = new $config->validHandlers[$backup]($config);5051 if (! $adapter->isSupported()) {52 // Log stuff here, don't throw exception. No need to raise a fuss.53 // Fall back to the dummy adapter.
SYSTEMPATH/Config/Services.php : 106 — CodeIgniter\Cache\
CacheFactory::getHandler ( arguments )
99 {100 if ($getShared) {101 return static::getSharedInstance('cache', $config);102 }103104 $config = $config ?? new Cache();105
106 return CacheFactory::getHandler($config);
107 }108109 /**110 * The CLI Request
class provides for ways to interact with111 * a
command line request.112 *113 * @return
CLIRequest
SYSTEMPATH/Config/BaseService.php : 189 — CodeIgniter\
Config\
Services::cache ( arguments )
182 return static::$mocks[$key];183
}184185 if (! isset(static::
$instances[$key]))
{186 // Make sure $getShared is
false187 $params[] = false;188
189 static::$instances[$key] =
AppServices::
$key(...$params);
190 }191192 return static::
$instances[$key];193 }194195 /**196 *
The Autoloader class is the central class that handles
our
SYSTEMPATH/Config/Services.php : 101 — CodeIgniter\Config\
BaseService::getSharedInstance ( arguments )
94 * complex data for later. 95 * 96
* @return CacheInterface 97 */ 98
public
static function cache(?Cache $config = null, bool $getShared
=
true) 99 {100 if ($getShared) {
101 return static::getSharedInstance('cache',
$config);
102 }103104 $config = $config ??
new
Cache();105106 return CacheFactory::getHandler
($config)
;107 }108
SYSTEMPATH/Common.php : 66 —
CodeIgniter\Config\Services::cache ()
59 * cache()->save('foo', 'bar');60 *
$foo = cache('bar');61 *62 * @return
CacheInterface|mixed63 */64 function cache
(?string $key =
null)65 {
66 $cache = Services::cache();
6768 // No params - return cache object69
if ($key === null) {70 return
$cache;71 }7273 // Still
here? Retrieve the value.
SYSTEMPATH/CodeIgniter.php : 580 — cache()
SYSTEMPATH/CodeIgniter.php : 304 — CodeIgniter\CodeIgniter->
displayCache ( arguments )
297 $this->spoofRequestMethod();298299
Events::trigger('pre_system');300301 // Check
for a
cached page. Execution will stop302 // if the
page
has been cached.303 $cacheConfig = new Cache();
304 $response =
$this->displayCache($cacheConfig);
305 if ($response instanceof ResponseInterface)
{306 if ($returnResponse) {307 return $response;308 }309310 $this->response->pretend($this->useSafeOutput)->send();311 $this->callExit(EXIT_SUCCESS);
APPPATH/Init.php : 458 — CodeIgniter\CodeIgniter->run ()
451$env = new DotEnv(COREPATH);452$env->load();453454helper('url');
455456$app = new \Phpcmf\Extend\CodeIgniter(new App());457$app->
initialize();
458 $app->run();
require /www/wwwroot/dt/index.php — require()
require /www/wwwroot/dt/admin.php — require()
http://www.51relaw.com/news/bencandy.php?&fid=45&id=1161