Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthormerindol
     

    Hi.

    On a recent post I seen that Arno is going to merge a Cache branch by the end of the month. It's going to be a content caching like Pear::Cache or Pear::Cache_Lite ?

    It's great news. I was going to implement a caching solution by myself in my application but I guess I'm going to wait :p

    Thanks for all this great stuff.

    • CommentAuthorarnoschn
     
    Hi,

    the cache branch will bring you different cache levels:

    1. Page caching - the whole output will be cached, cache will be rendered without filters
    2. Action caching - the action output will be cached, cache will be rendered with filters (good for authentication)
    3. Partial caching - Content can be cached from within a template for example and re-used

    The caching will be very similar to the rails caching mechanism.

    So have a look there and wait a couple of days ;)

    Best,
    Arno
    • CommentAuthorarnoschn
     
    The caching branch is merged into the trunk:

    http://trac.akelos.org/changeset/1185

    Be aware that using it with an existing application needs some manual work.

    If you want to apply it to an existing application please contact me and I will provide info.

    Otherwise follow the inline documentation and tell me about your findings :-)

    Best,
    Arno
    • CommentAuthorKaste
     

    Hi Arno, can you make some short notes/checklist about how to update an app. Because that question will arise surely many times in the forum.

    So long, Kaste

    (best to use a seperate thread)

    • CommentAuthorarnoschn
     
    Hi Kaste,

    sure. thats on my list for the next two days :-)
    Will post a short howto in the wiki for migrating existing applications.

    Arno
    • CommentAuthorsuthern
     

    Great! My migration went ok, (Had to copy and create some new files).

    I have one comment,

    I need to get some of those configuration options inside the database.yml file.

    To do this, I've found that this

    $conf = new AkConfig();
    $db_opts = $conf->get('database');
    

    works best. :-)

    • CommentAuthorarnoschn
     
    Hiya!

    Ok, documentation should be:

    $config = new AkConfig();
    $config->get('database');

    Sorry for that.

    Actually there is no reason why it should not be a static class. Will refactor it once I have some time.

    So for now instantiate an AkConfig object.

    However, you can also use:

    Ak::getSettings('database');

    Arno
    • CommentAuthorsuthern
     

    Thanks!