Skip to content
  • About
    • What is Symfony?
    • Community
    • News
    • Contributing
    • Support
  • Documentation
    • Symfony Docs
    • Symfony Book
    • Screencasts
    • Symfony Bundles
    • Symfony Cloud
    • Training
  • Services
    • Platform.sh for Symfony Best platform to deploy Symfony apps
    • SymfonyInsight Automatic quality checks for your apps
    • Symfony Certification Prove your knowledge and boost your career
    • SensioLabs Professional services to help you with Symfony
    • Blackfire Profile and monitor performance of your apps
  • Other
  • Blog
  • Download
sponsored by
  1. Home
  2. Documentation
  3. Bundles
  4. LiipImagineBundle
  5. Console Commands

Console Commands

Edit this page

Remove Cache

All cache for a given paths will be removed:

1
$ php bin/console liip:imagine:cache:remove path1 path

If you use --filter parameter, all cache for a given filter will be lost:

1
$ php bin/console liip:imagine:cache:remove --filter=thumb1 --filter=thumb2

You can combine these parameters:

1
$ php bin/console liip:imagine:cache:remove path1 path2 --filter=thumb1 --filter=thumb2

Cache for all paths and filters will be lost when executing this command without parameters:

1
$ php bin/console liip:imagine:cache:remove

Warm up Cache

Note

To automate cache warming, have a look at the Symfony Messenger integration.

1
$ php bin/console liip:imagine:cache:resolve path1 path2 --filter=thumb1

The cache for those two paths will be warmed up for the specified filter set. As a result you will get:

1
2
http://localhost/media/cache/thumb1/path1
http://localhost/media/cache/thumb1/path2

You can specify which filter sets to warm up:

1
$ php bin/console liip:imagine:cache:resolve path1 --filter=thumb1 --filter=thumb2

As a result you will get:

1
2
http://localhost/media/cache/thumb1/path1
http://localhost/media/cache/thumb2/path1

If you omit --filter, the image will be warmed up for all available filters:

1
$ php bin/console liip:imagine:cache:resolve path1

As a result you will get:

1
2
http://localhost/media/cache/thumb1/path1
http://localhost/media/cache/thumb2/path1
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.
TOC
    Version
    Take the exam at home

    Take the exam at home

    Save your teams and projects before they sink

    Save your teams and projects before they sink

    Version:

    Table of Contents

    • Remove Cache
    • Warm up Cache

    Symfony footer

    Avatar of michaelwilliams, a Symfony contributor

    Thanks michaelwilliams for being a Symfony contributor

    2 commits • 40 lines changed

    View all contributors that help us make Symfony

    Become a Symfony contributor

    Be an active part of the community and contribute ideas, code and bug fixes. Both experts and newcomers are welcome.

    Learn how to contribute

    Symfony™ is a trademark of Symfony SAS. All rights reserved.

    • What is Symfony?

      • What is Symfony?
      • Symfony at a Glance
      • Symfony Components
      • Symfony Releases
      • Security Policy
      • Logo & Screenshots
      • Trademark & Licenses
      • symfony1 Legacy
    • Learn Symfony

      • Symfony Docs
      • Symfony Book
      • Reference
      • Bundles
      • Best Practices
      • Training
      • eLearning Platform
      • Certification
    • Screencasts

      • Learn Symfony
      • Learn PHP
      • Learn JavaScript
      • Learn Drupal
      • Learn RESTful APIs
    • Community

      • Symfony Community
      • SymfonyConnect
      • Events & Meetups
      • Projects using Symfony
      • Contributors
      • Symfony Jobs
      • Backers
      • Code of Conduct
      • Downloads Stats
      • Support
    • Blog

      • All Blog Posts
      • A Week of Symfony
      • Case Studies
      • Cloud
      • Community
      • Conferences
      • Diversity
      • Living on the edge
      • Releases
      • Security Advisories
      • Symfony Insight
      • Twig
      • SensioLabs Blog
    • Services

      • SensioLabs services
      • Train developers
      • Manage your project quality
      • Improve your project performance
      • Host Symfony projects

      Powered by

    Follow Symfony