I find error... ;-)

First of all, of couse, error in my brain ;-)
Second - in manual:

'$cacheAction variable should be set to an array that contains the
<b>actions</b> you want to be cached"

It's not correct. NOT ACTIONS, but URLS!
I trying to make cache work, but forget, about routes setting...

"/", controller > posts... action ...

So, when I say cacheAction : view/2 - nothing happened, when I type:
test1.ru/2
but, when I try test1.ru/posts/view/2 - all done.

And I have brake my brain to get cache, in this case:

I want view urls like: test1.ru/index.html, test1.ru/about.html etc.
Of couse I write controller and setup route for him...
then, in action, I get $id = "index.html" or "about.html" and show
correct content.
But in this case - I cant make caching work...

When I say cacheAction => '/index.html' - nothing to happened
But when I say: cacheAction => '/' - cache work... but caching ALL
requesting page...
(for example, if hacker start trying : test1.ru/1, test1.ru/2 ...
test1.ru/10000
I will have 10 000 cache files in cache directory...

Thank's for help! ;-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to