Skip to content

Commit f932c8c

Browse files
authored
Update Api.php add call to $config->getUID (instead of __FILE__)
1 parent 8ac4561 commit f932c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tqdev/PhpCrudApi/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(Config $config)
6262
$config->getPassword(),
6363
$config->getGeometrySrid()
6464
);
65-
$prefix = sprintf('phpcrudapi-%s-', substr(md5(__FILE__), 0, 8));
65+
$prefix = sprintf('phpcrudapi-%s-', substr($config->getUID()), 0, 8));
6666
$cache = CacheFactory::create($config->getCacheType(), $prefix, $config->getCachePath());
6767
$reflection = new ReflectionService($db, $cache, $config->getCacheTime());
6868
$responder = new JsonResponder($config->getJsonOptions(), $config->getDebug());

0 commit comments

Comments
 (0)