Skip to content

Cache system #29

Description

@soullivaneuh

It would be great to have a cache system.

If a file was analysed before and didn't change since this time, we don't have to analyse it.

Also a --no-cache option must be added to get rid of this system.

Question: Where to store the cache? On the project folder (where the phpav command is run)? On a home special directory (e.g.: ~/.phpav/cache)? I think the second option would be better.

Composer and php-cs-fixer cache system would be a good inspiration.

We can store the cache with this way:

  • Key: The md5 of the file to compare with the queued one.
  • Content: A serialization of a class containing analyse information (infected, not infected, why...)

This will allows to increase the speed of the script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions