Skip to content

Commit

Permalink
Improve VuFind cache comment
Browse files Browse the repository at this point in the history
Co-authored-by: Demian Katz <[email protected]>
  • Loading branch information
maccabeelevine and demiankatz authored Dec 10, 2024
1 parent 5cb98c9 commit 21b637d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/VuFind/src/VuFind/Cache/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ public function createInMemoryCache(array $storageConfig): StorageInterface
{
$adapter = $storageConfig['adapter'] ?? 'memcached';

// Use cache manager for "VuFind" cache (only for testing purposes):
// The 'vufind' adapter uses a standard file-based cache to simulate an in-memory cache.
// This is intended for TESTING PURPOSES ONLY, since it allows us to test related functionality
// without setting up a real in-memory data store. It should not be used for any other purpose.
if ('vufind' === strtolower($adapter)) {
$this->logWarning('Using standard cache instead of in-memory cache -- for testing only!');
$laminasCache = $this->getCache('object', $storageConfig['options']['namespace']);
Expand Down

0 comments on commit 21b637d

Please sign in to comment.