Skip to content

lock method creates empty folder #375

@benjaminfunk

Description

@benjaminfunk

If i use the lock method, the cache system creates an empty folder. Is that normal? This is my setup:

$objCacheDriver = new \Stash\Driver\FileSystem(
[
	'path' => $this->objConfig->get('cache.file.path')
]);

$objCache = new \Stash\Pool($objCacheDriver);

$objCacheItem = $objCache->getItem('product.1233.444.555');

$mixCacheData = $objCacheItem->get();

if ($objCacheItem->isMiss())
{
	$objCacheItem->lock();

	$mixCacheData = 1337;

	$objCacheItem->set($mixCacheData);

	$objCache->save($objCacheItem);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions