Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorjervis
     
    Does it works at the production time?

    or how to turn it on?
    •  
      CommentAuthoradityamooley
     

    In production mode uncomment the define statements for caching in config/environments/production.php

    ak_define('ACTIVE_RECORD_CACHE_DATABASE_SCHEMA', true);
    ak_define('ACTIVE_RECORD_CACHE_DATABASE_SCHEMA_LIFE', 86400);
    

    This will cache the database schema for 1 day.

    • CommentAuthorjervis
     
    thank you very much
    •  
      CommentAuthorjunqed
     
    Next error on this "Call to undefined function ak_define()".
    I tried to replace function "ak_define" to "define". After reload a page there is no cache records in database. What's wrong?

    Sorry for english, russian i know better :)
    • CommentAuthorKaste
     

    also define AK_CACHE_HANDLER

    see AkCache