2 answers
0 votes
How can i disable counterCache?
I need to create 1000 model records and i dont want counterCache to update the count in the parent model each time i add a record.
Is there an easy way to disable counterCache and enable it again afterwards?
0 answers
2 votes
Работа с Cache
Как лучше использовать систему Cache встроенную в кейк?
Особенно, если учесть следующие факторы:
а) на сайте нужна регистрация (т.е. login/logout)
б) при наличии включённого кеша - контроллер НЕ запускается. А проверять залогиненность средствами ПХП...
1 answer
1 vote
Store View Cache in APC or Memcached
I'm pretty familiar with caching in Cake. I regularly cache queries in the model (I stuff them into RAM via APC) and I also cache views. However, no matter how I setup my cache engines (they're all using APC) the views are always cached to...
1 answer
1 vote
Logout does not refresh the contents
Hi Cake Experts,
I am having trouble with logout. When I logout, my browser would still display as if I am logged on the page. yet when i try to access secured resources it wouldnt let me do it.
I have a element like display login/logout messages...
1 answer
0 votes
counterCache and Tree behavior
I have Post and Category models. Post belongs to Category, and Category has many Posts. Category behaves like a tree. Now if I put counter cache on belongsTo relationship of Post model I will get number of posts in counter field of categories...
1 answer
1 vote
How to know number of logged users?
I'm wonder how can I get the number of the logged users in the web ?
1 answer
0 votes
Enable Gzip compression and set Cache expire times in CakePHP
I am using CakePHP with Apache2. Analyzing my pages with the tool PageSpeed from Google, I find two main problems. The first is that I should enable gzipping of content, the second that I should leverage browser caching for images, javascript and...
1 answer
0 votes
counterCache
I'm using counterCache to track the number of chapters that have been posted to their related stories.
This all works fine, apart from the fact that when the chapter_count field in the database gets updated, the modified field for that record does...
0 answers
0 votes
Randomly getting Memcache error
I'm randomly getting this error on refresh at same view and same controller (welcome/home page @ new installed app). Sometimes it's appears and sometimes don't i didn't get that.
On cake debug line:
Notice (8): Memcache::get() [memcache.get]:... 0 answers
0 votes
session and cache problem
Hi,
I have two problem with sessions and cache. i checked local php settings and the servers, they are same..
firstly it gives;
Fatal error: Call to undefined method Cache::isInitialized() in /nfs/c06/h03/mnt/92409/html/cake/libs/cache.php on line...
0 answers
0 votes
Caching an action
Hi all, I am trying to cache the controller actions that are used to build a site navigation which rarely changes.
I just enabled caching in core.php using file caching and set it renew each hour. A whole bunch of Describe SQL statements have...
0 answers
0 votes
Configure cache duration to be valid for current request only?
Is there a way to configure cakephp cache duration (in my case, FileEngine) so that the cache is valid for this request only ?
I have a >30s request that does some heavy & repetitive work that i would like to cache.
Thank you !
1 answer
0 votes
Problem with counting records
Hello,
I'm currently working on app for Voters registering and it's pretty much completed.
I have 5 tables in database: voters, locations, categories, users, statuses.
Table voter is in "belongs to" relationship with other tables and tables have...
0 answers
0 votes
How to improve view cache for XML
Hi,
I want to improve caching for XML files in Cake. I tried the normal view caching but is is not honoring pagination params and does not sends out the right content-type.
I know have this in app_controller. It checks if the reuest accepts XML...
0 answers
0 votes
Domain based cache
My application gets the user's content by the domain. Example:
bob.domain.com/blog/today -- user = bob
tom.domain.com/blog/today -- user = tom
Cache only uses "/blog/today" as differentiator and shows the same content for both URLs. Is it possible...
0 answers
0 votes
Accessing DboSource from Shell - Setting $cacheMethods to false
Is there a way to access the DboSource Instance from a Shell?
I need to disable methodCache because the hashing algorythm is causing false SQL-conditions. I know it could be disabled directly in dbo_source.php but I don't want to disable it...
1 answer
0 votes
counterCache
Can I get counterCache to work on a table that's not directly related to another one?
Forum hasMany Topic and Topic hasMany Post
I want to update post_count in Forum but Post has to go through Topic to relate to Forum.
Thank you,
Andrei
1 answer
0 votes
Create Web Application using HTML5 caching
Hi All,
Im looking to build an application in Cake which will be able to be used mobile devices (android, iPhone etc).
Basically the application will be used to create little microsites for different events (and have the program etc for each event)...
0 answers
0 votes
Cache Problem.
Hello Everyone,
I have a product listing page from where user can login using the jQuery dialog box, by using ajax. On successful login I had changed the link "LOGIN" to "MY ACCOUNT" in header element. It is also storing the cookie for user...
1 answer
0 votes
Session exist even if using different browser
HI,
I would like to ask what could be the cause of sessions still existing even if I opened the link in another browser. The scenario was I logged in at Firefox, and when I opened the same link at Chrome, the session username is found. I tried...






