Skip to content
This repository was archived by the owner on Jul 25, 2018. It is now read-only.

Latest commit

 

History

History
32 lines (21 loc) · 789 Bytes

03 - Cache.md

File metadata and controls

32 lines (21 loc) · 789 Bytes

Cache

The bundle provide a simple way to cache your charts, very easily, using the library CacheEngine.

Enable the cache

To enable the cache, edit your app/config/config.yml file:

leg_google_charts:
    cache_engine:
        enabled: true               # Enable the cache
        default_keep_time: 3600     # Set the default time to keep charts, in seconds

Using the ChartsManager, the cache will be enabled without any other action. The ChartsManager will do all the job alone.

Individual keep times

You can define a keep time for each chart individually, when you build it using ChartsManager:

$this->get('leg_google_charts')->build($chart, 5)

Next Steps

The following documents are available:

  • [03 - Cache](03 - Cache.md)