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...
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 ...
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...
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?
...
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...
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");
...
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...
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...
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...
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 ...
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...
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")...
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...
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...
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)
...
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.
...
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?
...
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.
...
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...
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...