Caching and admin area


#1

i have created some ‘public’ controllers like so:

./script/generate controller example

and an ‘admin’ controller like this:

./script/generate controller admin/example

now i want to have caching in the ‘public’ controllers so i add
something like this:

caches_action :show, :whatever

but i want the ‘admin’ controller to do the sweeping. now if i add this
to the ‘admin’ controller it doesn’t work as the :controller field is
referring to the ‘admin’ controller:

expire_action(:controller => ‘example’, :action => ‘show’)

how do i refer to the ‘public’ controller from within the ‘admin’
controller so that i can expire different parts of the cache?

thanks

-felix


#2

does something like:

expire_action(:controller => '/admin/example', :action => 'show')

work for you?

d.

On 21/02/2006, at 1:10 PM, Felix McCoey wrote:

expire_action(:controller => ‘example’, :action => ‘show’)

how do i refer to the ‘public’ controller from within the ‘admin’
controller so that i can expire different parts of the cache?

Daniel Bogan

waferbaby : http://waferbaby.com/
waferboy : http://waferboy.com/

I make the Internets.


#3

On 21/02/2006, at 1:18 PM, Daniel Bogan wrote:

expire_action(:controller => ‘/admin/example’, :action => ‘show’)

uh, yeah, i can read. i actually meant:

expire_action(:controller => '/example', :action => 'show')

d.

Daniel Bogan

waferbaby : http://waferbaby.com/
waferboy : http://waferboy.com/

I make the Internets.