FOSHttpCache

Integrate your PHP application with your HTTP caching proxy

OTHER License

Downloads
11.6M
Stars
349
Committers
70
FOSHttpCache - 2.0.0

Published by dbu over 7 years ago

See CHANGELOG.md for a list of the changes

FOSHttpCache - 2.0.0-beta3

Published by dbu over 7 years ago

Decoupled ResponseTagger from ProxyClient.

BC break with 2.0.0-beta2: The ResponseTagger no longer expects an instance of TagCapable as first argument. To adjust the tag header name or the way the tags are formatted, use the new header_formatter option with a TagHeaderFormatter.

FOSHttpCache - 2.0.0-beta2

Published by dbu over 7 years ago

  • Added extension point for dynamic caching servers in HttpDispatcher
FOSHttpCache - 2.0.0-beta1

Published by ddeboer over 7 years ago

  • Raised minimum PHP version to 5.6.
  • BC break: Removed the Interface suffix from all interfaces.
  • BC break: Renamed HashGenerator to DefaultHashGenerator.
  • Added interface HashGenerator.
FOSHttpCache - 2.0.0-alpha1

Published by ddeboer almost 8 years ago

PHP

  • Raised minimum PHP version to 5.5.

HTTP

  • BC break: Replaced hard coupling on Guzzle HTTP client with HTTPlug.
    You now need to explicitly specify a supported HTTP adapter in composer.json;
    see installation instructions.
  • BC break: Separated the HttpDispatcher from the proxy clients. All
    existing clients still use HTTP to send invalidation requests.
  • Added support and documentation for setting a custom TTL specifically for the
    caching proxy.

Logging

  • BC break: Renamed the log event listener from LogSubscriber to
    LogListener.

Tagging

  • BC break: Moved tag invalidation to CacheInvalidator, and renamed
    TagHandler to ResponseTagger.
  • Abstracting tags by adding new TagsInterface for ProxyClients.
  • Added strict option to ResponseTagger that throws an exception when empty
    tags are added. By default, empty tags are ignored.

Varnish

  • Varnish configuration are now files that you can directly include from your
    .vcl and call custom functions to avoid copy-pasting VCL code.
  • Added support for and changed default to Varnish version 5.
  • Moved Varnish 4 and 5 configuration files from resources/config/varnish-4/
    to resources/config/varnish/.
  • Changed default Varnish version to 5.
  • Removed special case for anonymous users in user context behaviour. Varnish
    now does a hash lookup for anonymous users as well.

NGINX

  • The NGINX purge location is no longer passed as constructor argument but by
    calling setPurgeLocation().

Symfony HttpCache

  • BC break: Renamed all event listeners to XxListener instead of
    XxSubscriber.
  • BC break: Constructors for PurgeListener and RefreshListener now use
    an options array for customization.
  • BC break: Converted abstract event dispatching kernel class
    EventDispatchingHttpCache to a trait, which now provides the addSubscriber
    and addListener methods. In your AppCache, replace
    AppCache extends EventDispatchingHttpInterface with a
    use EventDispatchingHttpCache; statement.
  • The user context by default does not use a hardcoded hash for anonymous users
    but does a hash lookup. You can still configure a hardcoded hash.

Testing

  • BC break: Refactored the proxy client test system into traits. Removed
    ProxyTestCase; use the traits CacheAssertions and HttpCaller instead.
  • Added HTTP method parameter to HttpCaller::getResponse().
FOSHttpCache - 1.4.2

Published by dbu over 8 years ago

fix invalidating of long lists of tags that might surpass the maximum header size of varnish.

FOSHttpCache - 1.4.1

Published by ddeboer almost 9 years ago

  • eb24688 Merge pull request #259 from FriendsOfSymfony/symfony-3.0-1.4 (David Buchmann)
  • c89e4f6 Merge pull request #261 from FriendsOfSymfony/symfony2 (David Buchmann)
  • a048f13 Replace 'Symfony2' with 'Symfony' (David de Boer)
  • fd08370 Upgrade Symfony dependencies to 3.0 (David de Boer)
FOSHttpCache - 1.4.0

Published by ddeboer over 9 years ago

  • 54117e2 Merge pull request #205 from FriendsOfSymfony/document-symfony-test-case (David de Boer)
  • 1e3138c document the symfony test case (David Buchmann)
  • 1741f68 bump composer branch alias (David Buchmann)
  • 4b6599f Merge pull request #204 from FriendsOfSymfony/symfony-process-dep (David Buchmann)
  • 284476d Note that symfony/process is a requirement for running tests (David de Boer)
  • 8332e2e Merge pull request #201 from FriendsOfSymfony/hhvm-symfony-travis (David de Boer)
  • 2a8ec17 fix AppKernel and no longer skip symfony cache client tests with hhvm (David Buchmann)
  • 64c4acd Merge pull request #193 from FriendsOfSymfony/symfony-cache-client (David de Boer)
  • df54ddc add tests for the symfony proxy client (David Buchmann)
  • 6d27bc0 Merge pull request #196 from FriendsOfSymfony/cleanup-setup (David de Boer)
  • 211c59b cleanup cache setup (David Buchmann)
  • d3274be Merge pull request #197 from FriendsOfSymfony/smaller-packages (David Buchmann)
  • 8485e9d Exclude files and dirs when building packages (David de Boer)
  • 40b24bd adding client for the symfony built-in reverse proxy HttpCache (David Buchmann)
  • b56f545 Fix docs line emphasis (David de Boer)
  • d39c132 Merge pull request #194 from FriendsOfSymfony/build-matrix (David Buchmann)
  • cb7e474 adding more builds to the matrix and adjust to correct lowest requirements (David Buchmann)
  • e2fb221 Merge pull request #195 from FriendsOfSymfony/doc-improvements (David Buchmann)
  • 645e739 Add link to GitHub (David de Boer)
  • b603caa Fix typo (David de Boer)
  • bf54037 Don't show version number in title (David de Boer)
FOSHttpCache - 1.3.2

Published by dbu over 9 years ago

  • Added TagHandler->hasTags() method (#190)
  • Documentation cleanups
FOSHttpCache - 1.3.1

Published by ddeboer over 9 years ago

  • Add authentication support to user context subscribe (#167).
  • Use guzzle/guzzle instead of deprecated subtree splits (#177).
  • Do not expose cache tags (#174).
FOSHttpCache - 1.3.0

Published by ddeboer over 9 years ago

  • Added TagHandler.
  • It is no longer possible to change the event dispatcher of the
    CacheInvalidator once its instantiated. If you need a custom dispatcher, set
    it right after creating the invalidator instance.
  • Deprecated CacheInvalidator::addSubscriber in favor of either using the event
    dispatcher instance you inject or doing getEventDispatcher()->addSubscriber($subscriber).
FOSHttpCache - 1.2.0

Published by ddeboer almost 10 years ago

FOSHttpCache - 1.1.2

Published by ddeboer almost 10 years ago

  • 4e227b4 Merge pull request #134 from FriendsOfSymfony/fix-accept-header-handling (David de Boer)
  • e894523 fix accept header handling when client sends no accept header (David Buchmann)
FOSHttpCache - 1.1.1

Published by ddeboer almost 10 years ago

  • 480615b Merge pull request #135 from lepiaf/update-sendrequest (David de Boer)
  • 0a47a5f use current class createRequest instead of client (Thierry Thuon)
  • 870c000 Merge pull request #137 from FriendsOfSymfony/fix-exceptions-test-mock-request (David de Boer)
  • ee5c4c2 fix mock request for exceptions test (David Buchmann)
  • 9073dc9 Merge pull request #131 from FriendsOfSymfony/doc-tabs (David Buchmann)
  • bf4b6cf Show VCL in tabs (David de Boer)
  • e809086 harmonize comments for ban between varnish 3 and 4 (David Buchmann)
FOSHttpCache - 1.1.0

Published by ddeboer almost 10 years ago

  • 9ca60d9 Merge pull request #126 from FriendsOfSymfony/no-duplicate-proxy-requests (David de Boer)
  • a2c253f avoid duplicate requests to the cache proxy. fix #125 (David Buchmann)
FOSHttpCache - 1.0.1

Published by dbu about 10 years ago

FOSHttpCache - 1.0.0

Published by dbu about 10 years ago

  • 8a84260 remove leftover debug code from test (David Buchmann)
  • 267eb41 Fix docs build (David de Boer)
  • 8d81ce3 Merge branch 'calumbrodie-patch-1' (David de Boer)
  • f1749c7 Move custom header to include (David de Boer)
  • 914337c Merge branch 'patch-1' of github.com:calumbrodie/FOSHttpCache into calumbrodie-patch-1 (David de Boer)
  • 4836698 Add example of passing header to Cache Invalidator (Calum Brodie)
  • 7dea240 Merge pull request #119 from usemarkup/master (David de Boer)
  • 879db5e Add headers as optional argument to CacheInvalidator (Calum Brodie)
  • 80f145c Merge pull request #118 from FriendsOfSymfony/purge-headers (David Buchmann)
  • 271ce63 Add custom Guzzle client section to docs (David de Boer)
  • e9f97d7 Add optional headers to purge call (fix #117) (David de Boer)
FOSHttpCache - 1.0.0-RC1

Published by ddeboer about 10 years ago

  • 060ca17 Merge pull request #115 from FriendsOfSymfony/nginx-cache-dir (David Buchmann)
  • c5046ba Merge pull request #116 from FriendsOfSymfony/test-naming (David Buchmann)
  • c578871 Make test naming more consistent with bundle (David de Boer)
  • fbca68f Make Nginx cache dir optional (David de Boer)
  • 4d6ec3b Merge pull request #114 from FriendsOfSymfony/fix-112 (David Buchmann)
  • 9019dad Throw exception if cache hit/miss header is missing (fix #112) (David de Boer)
  • 6841917 Merge pull request #111 from FriendsOfSymfony/src-test-coverage (David Buchmann)
  • f01f4ea Add tests for src/Test (David de Boer)
  • fb6fbe9 Merge pull request #105 from FriendsOfSymfony/test-exception (David de Boer)
  • c816751 testing guzzle exceptions (David Buchmann)
  • 51e240e fix garbled namespaces (David Buchmann)
  • 95ae1b0 applied codestyle fixer to remove unused imports and align phpdoc (David Buchmann)
  • e692086 Merge pull request #103 from FriendsOfSymfony/extract-test-functionality (David Buchmann)
  • 2e0ada8 Run Nginx through ProcessBuilder (David de Boer)
  • 3dee8cd Move reusable test classes to src (David de Boer)
  • 41d8913 Extract Varnish process (David de Boer)
  • 754e9bd Extract test assertions (David de Boer)
  • 69edb20 Merge pull request #108 from FriendsOfSymfony/nginx-debian (David de Boer)
  • ae2d1ee Make install-nginx.sh Debian-compatible (David de Boer)
  • b76047f Fix broken sentence (David de Boer)
  • b3e7a07 Fix #106 (David de Boer)
  • 48961bd Merge pull request #104 from FriendsOfSymfony/more-tests (David de Boer)
  • 49ac663 add some more tests (David Buchmann)
FOSHttpCache - 1.0.0-beta1

Published by dbu about 10 years ago

  • c63e30e Merge pull request #102 from FriendsOfSymfony/fix-hhvm-404 (David Buchmann)
  • 22030d4 Simplify HHVM Apache vhost (David de Boer)
  • 47a5355 Fix 404s on HHVM (David de Boer)
  • b9fe429 Merge pull request #96 from FriendsOfSymfony/debug-info-on-error (David de Boer)
  • 657b8c6 Add documentation references (David de Boer)
  • 31ad2cc Merge pull request #100 from FriendsOfSymfony/base-url-port (David Buchmann)
  • 39bcecf Note that base URL should include port, too (David de Boer)
  • b4eee37 provide request information in exception mesage (David Buchmann)
FOSHttpCache - 1.0.0-alpha4

Published by dbu over 10 years ago