Skip to content

HttpCache/Store removes "md" but leaves "en" files #6830

Closed
@inrobin

Description

@inrobin

Currently /Symfony/Component/HttpKernel/HttpCache/Store removes only metadata files in /app/cache/dev/http_cache/md (returned by $this->getCacheKey) and leaves /app/cache/dev/http_cache/en:

<?php
  /**
      * Purges data for the given URL.
      *
      * @param string $url A URL
      *
      * @return Boolean true if the URL exists and has been purged, false otherwise
      */
     public function purge($url)
     {
         if (is_file($path = $this->getPath($this->getCacheKey(Request::create($url))))) {
             unlink($path);

             return true;
         }

         return false;
     }

What about removing files from /app/cache/dev/http_cache/en on purge too?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions