sfPropelCachePlugin - 1.0.0

Propel cache plugin.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfPropelCache Plugin

Installation

  • Install the plugin

    $ symfony plugin:install sfPropelCachePlugin
    
  • Setup sfPropelCache as view cache in your factories.yml (see config/factories.yml.sample):

    all:
      view_cache:
        class: sfPropelCache
        param:
          automatic_cleaning_factor: 10
  • Add the database connection parameters to your databases.yml (see config/databases.yml.sample):

    cache_db_connection:
      dsn:      mysql:dbname=your_dbname;host=localhost 
      username: your_username
      password: your_password
     
    all:
      ...
  • Add the cache table (dt_cache) to the indicated database. For MySQL you may use the provided sql file (see data/sql/sfPropelCache.MySQL.schema.sql).