Hello. I'm new to implementing custom membership/roles for ASP.Net MVC 2. I have membership/roles working in that a user can login successfully and can retrieve their role assignments. However, if I change their role assignments in the underlying database, those changes are not propagating through to the app. I removed all role assig...
When retrieving external variables from the server URLVariables my Flash get stuck on first compilation values. Whenever I update server values flash compiles the first old values. Only after i restart CS4 IDE values are updated. Is there an internal cache?
There is nothing wrong with my code, because it works fine on my mac, but not on...
I've got an Invoice model, and I want to keep the total up to date. So I've added a property like this
@property
def item_total(self):
if not hasattr(self, 'item_total_cache'):
self.item_total_cache = self.items.aggregate(t=Sum('amount'))['t']
return self.item_total_cache
Because item_total might get called a few times...
Does Ehcache 2.1 now support the transactional cache concurrency strategy in Hibernate 3.3.2GA? That is, does Hibernate, when configured to use Ehcache 2.1 as its cache provider, allow the <cache usage="transactional"/> element in a mapping file or the Hibernate entity class annotation @Cache(usage=CacheConcurrencyStrategy.READ_WRITE)?
...
1.- I'm working Glassfish 2.1 with EcipseLink 2.0.0, so really using JPA 1.0 specification, and I have a stateless EJB that finds entities among other things. As far as i know JPA 1.0 defines a L1 cache that works at Persistence Context level (transaction level for stateless EJBs) but I can't figure out why the next code prints "Not same...
We are thinking about using the enterprise library caching framework in our asp.net 3.5 application to store small datatables of our most hit products.
Is there a way to write an outside process, like a console application, to remove these datatables, if needed? For example, a client can come in and update the data for a product, which...
On a website I'm making, there's a section that hits the database pretty hard. Harder than I want. The data that's being retrieved is all very static. It will rarely change. So I want to cache it.
I came across http://wiki.pylonshq.com/display/pylonsdocs/Caching+in+Templates+and+Controllers and had a good read have been making use of te...
I've been writing a simple text-editor in HTML5 that is supposed to work offline. I can't, however, get the offline application cache to work, and I can't work out why not.
My manifest file is like this:
CACHE MANIFEST
application.html
options.html
...
And it is being invoked as follows:
<!DOCTYPE html>
<html manifest="cache.manife...
Over at rsscache they have a way of refreshing the cache only when the feed has changed. Unfortunately its .Net.
I would like to know what approach I should take to achieve this in php.
How are changes in the feed detected? Simply by a timestamp (time node in the beginning of the feed)?
My feed would be a yahoo pipe that has mixed m...
I'm working on a PHP script which generates large (multi-MB) output on the fly without knowing the length in advance. I am writing directly to php://output via fwrite() and have tried both standard output and using Transfer-Encoding: chunked (encoding the chunks as required) but no matter what I try the browser waits until all the data i...
Over at rsscache they offer a mechanism that caches your website's feed. They claim that if a new node gets added to your feed, instead of flushing and refilling the entire cache(for the current user, they proably do for new users), they only send the new node to the current users newsreader, and the reader adds it within the other nodes...
So it seems a yahoo pipe cache is fixed at 30 minutes. Considering it is dynamically generated (no flat file), is the software that generates the feed configured to produce HTTPCG-aware feeds, can it be setup when buidling a pipe? If not can it somehow (third party cache) hacked into being so ?
...
Hi
We are building web applications for the iPhone that work offline. But we are having difficulties caching dynamic images. Please read on and I'll show by example exactly what I mean and what we have done so far.
So for example let's say we are building a simple list application with just 1 page. The application's only purpose is to ...
In asp.net the major data stores are application, session and we also have the object cache.
I have used common sense hints/tips (e.g. never put users specific data in application, never put unmanaged resources in session etc. etc.) but to be honest I have never come across any recommendations and examples for when to use what in MSDN or...
I currently have a cache implementation (using arrays) for the heavy computations performed during the simulation. The structure of the cache is as follows:
The way it works:
CalculationsAbstract calculationsCache = new CalculationsCache();
// Constructor of CalculationsCache
public CalculationsCache()
{
this.Proxy = new Calculat...
I have a table that stores songs and plays counter.
Here's the code:
//Increse plays counter
string ip = Request.UserHostAddress;
if (!string.IsNullOrEmpty(ip))
{
if (Cache["plays:" + trackID + ":" + ip] == null)
{
tracks.IncreasePlaysCounter(trackID);
Cache["plays:" + trackID + ":" + ip] = true;
}
}
I wond...
I think I wrote a simple DOM cache mechanism to be more efficient, avoiding multiple $('blah') calls, e.g.:
if ($('foo').length) {
$('foo').bar();
}
So I created a DomCache child object under my project main object:
MyLib.DomCache = {};
When I need a jQuery object of an element, I look in the DomCache and if I found it I use it...
I am evaluating a number of NoSQL implementations (RavenDB and MongoDB at the moment) as a means of solving a specific set of requirements that involve storage/retrieval of data that is schema-less. I want to get some feedback on whether NoSQL is the direction I should be looking in, or if there are other (potentially simpler) options.
...
Hi all. I have developed an html5 game which I also want to play offline, so I decided to add a manifest file.
The game is in a subdirectory, e.g. /games/game/ and the manifest is in that directory: /games/game/application.manifest. But the game depends on serval site-common files stored in /js and /css OUTSIDE the game directory!!! The...
Hello,
I use CanCan to check user permissions and display or suppress page content conditionally for my users. I want to cache my pages though, and even with fragment caching can't find an elegant solution... for example:
cache do
# much code
if can?
# little code
else
# little code
# much code
if can?
# little cod...