Skip to content

Annotation cache dir is in /tmp if apcu is not used #309

@MattBred

Description

@MattBred

Related: #303

In the SchemaFactory, it defaults to sys_get_temp_dir() if the apcu extension is not found:

$cache = function_exists('apcu_fetch') ? new ApcuCache() : new PhpFileCache(sys_get_temp_dir() . '/graphqlite.' . crc32(__DIR__));

This cache dir should be configurable, so that for example, in a Symfony install, we can set it to var/cache/dev

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