A cache is a mechanism for temporarily storing (caching) documents or data, to reduce access time.

learn more… | top users | synonyms (3)

0
votes
0answers
7 views

Java URL inputstream caching

I have a web application in which the header is displayed by hitting a URL. Since the header content doesnt change always i wanted to cache the results of the URL inputstream and refresh it for every ...
0
votes
3answers
48 views

Optimization: Expensive branching vs cheap comparison

This is a great article which talks about low level optimization techniques and shows an example where the author converts expensive divisions into cheap comparisons. ...
-2
votes
0answers
15 views

How to Cache a website for ios app [on hold]

How do you cache web resources for an ios app Hi, I have an ios app which opens a website when the user taps on "how to play" i have so many images on the website so it takes a very long time to ...
0
votes
0answers
6 views

How can I automatically delete these redundant cache entries?

Let's say I create a new object in my Category class: > @category = Category.create :name => "foo" +----+------+-------------------------+-------------------------+ | id | name | created_at ...
0
votes
0answers
7 views

Error writing and reading bitmap to and from temporary cache file android?

Here is my code when I am writing to the file Bitmap bitmap; InputStream is; try { is = (InputStream) new URL(myUrl).getContent(); bitmap = BitmapFactory.decodeStream(is); is.close(); ...
0
votes
2answers
19 views

Solution to use instead of $global variable?

I have a cached object that takes quite some time to calculate (~ 30 seconds). I recalculate this object every 24 hours, and if that happens, sometimes users are experiencing time outs if they happen ...
0
votes
1answer
10 views

Unable to jump to row 0 on MySQL result index 6 in …/tag.php on line 8

i m using php script which is used for watching videos.Last 2-3 days about i have 1k online people at same time and now i m getting internal server error at random times.When my site was getting ...
0
votes
0answers
9 views

Mem and Swap from the top command output

I checked the memory usage from a node of our cluster. a snapshot of the topcommand is as following: Mem: 24659948k total, 3113860k used, 21546088k free, 168328k buffers Swap: 28667984k total, ...
-1
votes
0answers
11 views

django local cache corrupts objects making them unusable

I'm working with google APIs and I'm caching the service object, which is an authenticated object for API access. Unfortunately, after having been cached, it doesn't work anymore, returning a login ...
0
votes
1answer
17 views

Fragment caching in yii: where should I load my model?

In general the good practice is to call the model only from the controller and then pass it to the view. Here's an example: public function actionView($id) { $this->render('view', array( ...
0
votes
0answers
14 views

magento outputs wrong custom image

I have a Magento module that added a custom product image type, that only gets outputted in a special .phtml - so it has 'exclude' ticked in the backend to not show on the normal product page. It's ...
1
vote
0answers
16 views

AFNetworking returns 200 when should receive 304 - ETag

I'm tring to use the etag to cache my images, the first time it downloads all the images like it should however the second time it does too when it should enter the failed block with 304. I've tried ...
0
votes
2answers
21 views

Expiring a javscript variable?

I saved some data returned from ajax in javscript variable. I would like to invalidate this variable after some time period, say one hour. I can potentially write some setTimeout functions to handle ...
1
vote
0answers
20 views

Windows 8 App Cache Problems

I have an application in the Windows Store which actually runs fine so far. But I got some Feedback from Users who say that my application is using too much disk space. I got numbers from 1 GB to 10 ...
0
votes
1answer
28 views

How to avoid data caching when querying the database?

I'm having a strange problem with ASP.NET MVC4 and Entity Framework 5: The web application I'm building retrieves data from a database and sends it as Json into a viewmodel on the page, from which it ...

1 2 3 4 5 869
15 30 50 per page