caching

Is it possible to disable symfony's cache per request

If a certain condition is met, is it possible to tell symfony not to cache the current request? I'm aware of the contextual configuration flag, but this is an action, and not a partial or component, so I don't think it applies. Context: I'm running a multi-site CMS. Each site can have multiple domain names associated with it, but one is...

How does CherryPy caching work?

I recently discovered that page object attributes in CherryPy are persistent between requests (and between clients). So I'm wondering, would it make sense to store page output in such an attribute? Like this: class Page: def default(self, pagenumber): if pagenumber not in self.validpages: return 'Page number not ...

What kind of Http proxy do I need?

So, I have a website that is served by 12 separate application servers without any shared cache. We use a third party webservice to implement a particular functionality in the app. However, the 3rd party doesn't want us to be calling them a lot lest it breaks their site. Hence I am thinking of keeping some kind of a proxy in between th...

What's the current state of accelerators in Zend?

I hear about accelerators such as these in PHP. I believe APC is making it to PHP 6 also. Eaccelerator APC Xcache What's the state of accelerators in Zend? I see a Zend_Cache. Is it the standard and is there more? ...

nginx be both reverse proxy and web server

I currently use nginx with passenger to serve my rails app. considering including a caching reverse proxy to the equation. Can I use the same instance of nginx as a reverse proxy (running on port 80, serving static as well as e-tagged actions) as well or would I need a different instance of nginx or a totally different type of reverse pr...

jQuery get cache probelm

I wrote a simple snippet to load dynamically pages parts as fallows: function LoadParts(container) { $("a._Part", container).each(function () { element = $(this); url = $(this).attr("href"); $.get(url, null, function (text, status) { var c = $(element).parent("span"); ...

Validation of existence per result on a indexed list, mysql/php

We have a directory system that lists people with their credentials such as email phone and etc Their web profile link is also listed. but this link is created by taking the email username and adding it to a link. so [email protected] has a profile page at school.com/user/joe01 currently there is no validation to check if the actual user...

High performance database queries

Hi I have a .NET desktop application, which is used by 5000 users who are distributed across Canada. One of the functionality is to communicate with some modems using some parameters that we get from the database. The unique thing about this functionality is: 1 - it should be extremely fast because it is communicating with modem tools...

How does the Customer Origin/ Mirror bucket concept in CDN work?

I call a 3rd party webservice for some content. I dont want to call them every time. Instead, I am planning to create a mirror bucket/customer origin to the webservice so that I always request content from the CDN and the CDN can throttle the requests to the 3rd party. My question is, to implement this, does the 3rd party need to kno...

Delete cache when web browser is close.

Hi all. I have issue about multiple login in asp.net. Case this happen: User X login as "user1" in web browser. Then user Y also login as "user1" also in another web browser. User Y got error message "Another user log in some account". That is work as expected. If X, close their web browser. Then try again to login in as "user1". X get ...

How to design cache strategy for stock data?

Hi We are building a stock website. We will provide a chart which let user drag scroll bar(time) with defined frequency. I am wondering if we should load all data into chart one time or query database when user drag scroll bar. We also want to know what kind of caching strategy is available for our situation-- on front-end and back-end...

Stop FIREFOX from caching captcha

So I have this form here: http://www.piataterenuri.info/register.php The problem is that Firefox caches the captcha image and after an incorect input, or a page refresh the captcha will show the old image instead of the curent one. I've already placed: header("Cache-Control: no-cache"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT")...

ASP.NET MVC: cache with non-cachable portions

I have a heavy page that is cached. This is okay for anonymous users. They all see the same page. The problem is for logged in users. They should have minor parts of the page re-rendered on every request (like personal notes on content in the page, etc.) But still all the rest of the page should be cached (it does tons of SQL and calcua...

Creating a local transparent cache of a mercurial repository.

I have lots of different clones which I work on separately. When I want to update those clones, it can be quite slow to update them from the server. So instead I have a "clean" clone, which I update from the server regularly, and all the other clones clone from the clean clone (hope that makes sense). But now what I have is a two-step a...

Rails associations - problems with altering values, and too much caching!

Suppose I've got a card-game app, which features a Player model, which has an actions integer column; and a Card model. A player can play a card they own, which costs an action; one particular card grants two actions when it's played. If I code this as follows: class Player < ActiveRecord::Base has_many :cards def play_card(card) ...

EnterpriseDB InfiniteCache

Has anyone ever used EnterpriseDB infinite cache? Any successes or failures? I am doing research on it and find painfully little that is not marketing speak. ...

Is it possible to render a partial and force the browser not to load from cache?

I have a window and when it opens, I need to make sure that the image is its latest state. So I thought why not.. render :partial => 'logo', :cache => false but that's not really rails. Any ideas? ...

How to force mysql to cache a query for a specific period of time ?

Hi all, is there a way to force mysql to cache a particular query, for say 5 minutes, so executing that query will always return the same result even if the underlying db changes ? i'm running a dating site and i have a page that shows "newest matches" and it's hitting the db too much. thanks in advance. ...

How to clear PHP APC from a Selenium test?

In my PHP Zend Framework application, I am using APC to cache certain repeat requests to the database. Within the application, I can clear the cache with this command:apc_clear_cache('user') I am also running PHPUnit Selenium tests against this application. Before adding APC, I had no problems. I have a test that adds a test user to the...

How do cache lines work ?

I understand that the processor brings data into the cache via cache lines, which - for instance, on my atom processor - bring in about 64 bytes at a time, whatever the size of the actual data being read. My question is : Imagine that you need to read one byte from memory, which 64 bytes will be brought into the cache ? The two possib...