Requirements

  * MemCached server

   Note :Please see "here":https://www.nexedi.org/workspaces/members/ivan/portal_cache_project/memcached/view

  * MySQL

   Note you need a separate database or you can use an existing one. For database connection options please see
   'CachePlugins/config.py' --> "CACHE_PLUGINS_MAP['persistent_cache][params]"
  

Install instructions

 * untar ERP5Cache.tar.gz under 'Products/'

 * replace 'ERP5Type/Cache.py' with contents of 'mine_Cache.py'  like so

     > mv Cache.py old_Cache.py

     > ln -s mine_Cache.py Cache.py 


 * Installing cache tool ('portal_caches')


  * Go to 'ERP5/Tool' and create symbolic link like so:


	> cd ERP5/Tool

        > ln -s CacheTool.py  ../../ERP5Cache/CacheTool.py


  * Go to 'ERP5/' and edit '__init__.py' like follows:

	=====================================
  	[...]

    	from Tool import <list of all Tools>,  CacheTool

	[...]

  	portal_tools = ( <list of all Tools>,
                 	CacheTool.CacheTool,
                	)

	======================================


   * Restart Zope and under ZMI add from standard 'ERP5 Tool' --> 'ERP5 Cache Tool'


   * go to "http://localhost:9080/erp5/portal_caches/view"  


Testing (unittest)

  > cd ERp5Cache/tests

  > python testCache.py
