Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8774361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:32:51+00:00 2026-06-13T18:32:51+00:00

After upgrade Kohana framework from 3.2 to 3.3, Cache ask me to put an

  • 0

After upgrade Kohana framework from 3.2 to 3.3, Cache ask me to put an default group to it.

config/cache.php

return array(
     'default' => array(                    // Driver group
         'driver'         => 'apc',         // using APC driver
         'default_expire' => 3600,          // life time
      ),
);

Before, I used to do like this without the group name:

Cache::instance()->set('key', 'val');

Now, that sends an Exception: Failed to load Kohana Cache group: file.

But, when I set the name group all woks perfect.

Cache::instance('default')->set('key', 'val');

How can I set now in 3.3 a default group without type it always whatever I want to use it? Maybe is a new upgrade, but, I checked the new features of kohana 3.3 and I don’t see any of that.

Hope you can help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:32:53+00:00Added an answer on June 13, 2026 at 6:32 pm

    Alright so, here’s the deal. Without the cache group supplied, it defaults to file. So if you -dare- change that, be my guest. But just set the static instance in bootstrap.php, answer at the bottom.

    — This is from the base cache class. —

    public static $default = 'file';
    
    public static function instance($group = NULL)
    {
        // If there is no group supplied
        if ($group === NULL)
        {
            // Use the default setting
            $group = Cache::$default;
        }
    

    So in your bootstrap.php set this, though I would name it to APC in your config:

    Cache::$default = 'default';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A .NET 4.0 application needs to run without errors after system upgrade from Windows
I recently upgraded Xcode from 3.2 to 4.2. After the upgrade I was having
After an upgrade to LWP 6.04 from an older (5.8x?) version, i noticed that
After my hosting provider upgraded server (Debian) and PHP (from 5.2.6 to 5.3.2) I
I have another very puzzling question that has cropped up after my upgrade from
After upgrade of cassandra from 0.8.2 to 0.8.4, got this error I have restarted
After upgrade to Rails 3.0.10 I'm getting strange error if I set config.cache_classes=true NoMethodError
After upgrade from Silverlight 4 to Silverlight 5 I get System.Exception 6028 when MediaElement
After upgrade to PHP 5.3 my application is returning DB2 columns with Timestamp type
After an upgrade from Spring 3.0.0 to 3.1.0 I am unable to instantiate the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.