Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
CacheBox on Beta 3.5 registering 2 railo provider caches as the same cache.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ade  
View profile  
 More options Feb 11, 10:50 am
From: Ade <adiefatl...@gmail.com>
Date: Sat, 11 Feb 2012 07:50:01 -0800 (PST)
Local: Sat, Feb 11 2012 10:50 am
Subject: CacheBox on Beta 3.5 registering 2 railo provider caches as the same cache.
I can see what i am doing wrong here.

I have this snippet in my cachebox.cfc

                               cacheBox.caches = {
                                //need to set up an eh cache lite called templte to use this
                                        template = {
                                                provider = "coldbox.system.cache.providers.RailoColdBoxProvider"
                                        },
                                        object = {
                                                provider = "coldbox.system.cache.providers.RailoColdBoxProvider"
                                        }
                                };

In the monitor i have 3 caches registered. default,template and object
However template and object have exactly the same items in them with
the same values.
Also on cachebox monitor the template cache under "Cache
Configuration" shows as having cachename=object

When i do this
objectCache = controller.getColdboxOCM("object");
//templateCache = controller.getColdboxOCM("template");
objectCache.clearAll();

in onAppInit the template cache also clears too.

So it looks like i have 2 registered caches but they are using the
same underlying cache.

I have specified them as "eh cache lite" caches in Railo. Is Railo
only providing 1 underlying cache with "eh cache lite"?       If so why does
the monitoring tool have it as cachename=object

Railo 3.3
Coldbox 3.5 Beta

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luis Majano  
View profile  
 More options Feb 11, 12:49 pm
From: Luis Majano <lmaj...@gmail.com>
Date: Sat, 11 Feb 2012 09:49:45 -0800
Local: Sat, Feb 11 2012 12:49 pm
Subject: Re: [coldbox:13704] CacheBox on Beta 3.5 registering 2 railo provider caches as the same cache.

If you read the RailoColdBoxProvider docs: http://wiki.coldbox.org/wiki/CacheBox.cfm#Railo_Providers
You can pass another property into the provider called "cachename" so you can tell the provider what underlying railo cache to talk to

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com (http://www.ortussolutions.com)

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano (http://twitter.com/lmajano) facebook.com/lmajano (http://facebook.com/lmajano)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ade  
View profile  
 More options Feb 17, 9:25 am
From: Ade <adiefatl...@gmail.com>
Date: Fri, 17 Feb 2012 06:25:48 -0800 (PST)
Local: Fri, Feb 17 2012 9:25 am
Subject: Re: CacheBox on Beta 3.5 registering 2 railo provider caches as the same cache.
Beautiful, thanks Luis

cacheBox.caches = {
                                        template = {
                                                provider =
"coldbox.system.cache.providers.RailoColdBoxProvider",
                                                properties = {cacheName = "template"}
                                        },
                                        object = {
                                                provider =
"coldbox.system.cache.providers.RailoColdBoxProvider",//uses the
default object cache by default
                                                properties = {cacheName = "object"}
                                        }
                                };


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »