Questions tagged with cache

2 answers

0 votes

Asked by Lemon, on 31/10/09 in Models

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

Asked by Vladislav, on 18/11/09 in Controllers

Работа с Cache

Как лучше использовать систему Cache встроенную в кейк?

Особенно, если учесть следующие факторы:

а) на сайте нужна регистрация (т.е. login/logout)

б) при наличии включённого кеша - контроллер НЕ запускается. А проверять залогиненность средствами ПХП...

1 answer

1 vote

Asked by Darren, on 11/12/09 in Views

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

Asked by memons, on 7/1/10 in Models

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

Asked by Alfred, on 18/1/10 in Models

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

Asked by f44, on 22/1/10 in Components

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

Asked by andrea, on 25/1/10 in Installation / Configuration

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

Asked by TheWorldofDan, on 21/3/10 in Models

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

Asked by t3chno, on 18/4/10 in Installation / Configuration

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

Asked by koalakid, on 12/5/10 in Controllers

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

Asked by olouv, on 16/5/10 in Installation / Configuration

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

Asked by pantopita, on 13/6/10 in Controllers

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

Asked by primeminister, on 29/7/10 in Views

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

Asked by foxroberts, on 5/8/10 in Views

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

Asked by johnnymoped, on 21/8/10 in Shells

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

Asked by NomadCat, on 8/9/10 in Models

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

Asked by twitchel, on 10/9/10 in CakeQS

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

Asked by patelnehal4u, on 13/9/10 in Installation / Configuration

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

Asked by cakebaker999, on 17/9/10 in CakeQS

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...

<< previous 1   2   3