caching

phpFlickr Caching to Filesystem or MySQL?

Are you supposed to be able to see distinct filenames via phpFlickr's caching to filesystem or MySQL? I've set the parameters as listed in the readme, but caching does not seem to generate any files or mysql table rows. I've tried both the filesystem (chmod 777 in cache folder) and mysql method (manually created cache table). Any advic...

Append time to an HTML element attribute using PHP to force browsers not to cache a Silverlight application

How can I append current time using PHP to the value attribute of the first param element in the following html fragment? <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param id="sourcie" name="source" value="SClient.xap?**TIME**"/> <param name...

Sharing cache between apps (asp.net) on the same physical machine.

We have several virtual applications inside one main (root) application. How to share Cache between this virtual application and main application if they are located (and always will be) on the same physical machine? By Cache i assuming System.Runtime.Caching or System.Web.Caching. Hope that i do not need to setup AppFabric Caching for...

Reduce number of included files

Hello, My application based on Zend Framework and Doctrine includes > 300 files on each request. They are mostly the same files. This is a quite huge overhead. Partially solved by Zend_Cache (and Memcache), but not all the pages may be cached. How to reduce this number? How to speed up? Doctrine has an option to compile the needed ...

Will caching be appropriate for this scenario?

Hi folks, So I have a PHP CodeIgniter webapp and am trying to decide whether to incorporate caching. Please bear with me on this one, since I'll happily admit I don't fully understand caching! So the first user loads up a page of user submitted-content. It takes 0.8 seconds (processing) to load it 'slow'. The next user then loads up ...

Flex/mate: mate doesn't cache instance, created with Object Builder

If you once run an ObjectBuilder the object instantiated will be cached and next time you use an PropertyInjector or something else, the instantiated object will be used instead of creating a new object. Or at least this should be like this :) But in the example below it seems that mate tries to instantiate the object again: The follow...

ZF - How to cache parts of the layout

Hello, I use Stacic Page Cache (with cache action helper) to cache most of the pages of my App. This is extremly fast, but not always suitable. How do you cache pages with dynamic data? Eg. layout contains info specific to user. One solution I considered is to load additional data via Ajax. But in my case it would be better to cache...

How can I 'freeze' a dataset in a Datasnap server?

For a dataset which takes a very long time to open (it is a stored procedure), I would like to implement some kind of caching on the Datasnap server. So if this dataset is loaded the first time and transferred to the client (TClientDataSet), it should not be closed and reopened for the following requests unless the server restarts or a ...

LINQ-To-SQL - Is it possible to cache GetTable or serve it from repository?

Hi, I'm running profiler tools on the LINQ-to-SQL data access layer. A lot of the time is spent on GetTable<clsName>() because it's being called each time i CRUD data. Is it possible to cache GetTable<clsName>() for all the tables when the application starts or serve it through some sort of repository where it will be in memory? Th...

Fast single table database.

I have an analytics database where I make complex queries. Each of these queries generates thousands of rows. I want to store these results in some kind of on disk cache so I can get the results later on. I can't insert the results back into the database where the results came from as that database is read only. The requirements of this ...

How to invalidate has_many relationship in Rails

In my Rails app, I have a class with a has_many relationship. For the sake of efficiency, I want to do some direct SQL to update many rows in the database at once, and then I want to mark the has_many relationship as no longer valid. If later code accesses the has_many relationship, I want it to reload the data. But I obviously want t...

C# - is there a way to flush the DNS cache from a C# WPF app? (on XP, Vista, Win7)

Hi, Is there a way to flush the DNS cache from a C# WPF app? The application would be running on either XP, Vista, or Windows 7. ...

silverlight XAP gets downloaded everytime

Hi All, Ive just uploaded my silverlight webpage to my production webserver. The issue im having is that everytime I open the website in the browser it is downloading a new copy of the XAP. Any ideas what could be causing this issue? Thanks ...

How to create Custom Spalsh screen while Silverlight downloader download Application Library Cache files ?

Hello, I have created a sample application suing Application cache, My some files are located on server. its working fine. But Now I have added appx 10 MB ZIP file and now want to downlaod, Silverlight downloader show 100% in xap download and then no progress show just circle appears. I have tried the http://pagebrooks.com/archive/200...

Cannot expire cached fragment by default methods in Ruby on Rails + Devise

I'm using Devise as authenticating solution in Rails and I have a cached fragment :recent_users. I want this fragment to expire when a new user is registered, changed or removed, so I put in my(manually created) users_controller.rb class UsersController < ApplicationController cache_sweeper :user_sweeper, :only => [:create, :updat...

change image on postback

So, here's the scenario: I have a page in my asp.net c# based website, which displays data dynamically after taking the request from query strings. For example: Brand=HTC&model=Wildfire Now, in this page I want to display all the deals available in each network separately. So, on the first pageload, I retrieve the data from the tables ...

C++ cache file mean?

I got the C++ code as follows: string cachefile = filename + ".cache"; ifstream cache(cachefile.c_str(), ios::binary); As I did not find it in a C++ reference, what are these codes doing (like ifstream etc)? And what is the cache file please? Why should it be created? What are the advantages and how to interpret it? Above all, what ...

Prefetcher max cache size reached

After working a while with my Mediaplayer streamer project I got the Logcat saying: "Max cache size reached" every second. Is it normal? And should I do something about it? It plauges me and I have to restart my emulator to get rid of it. 08-17 17:34:28.772: INFO/Prefetcher(34): max cache size reached 08-17 17:34:29.772: INFO/Prefetcher...

Turning Magpie Cache off

Hi all, Im using magpie to pull rss feeds from several websites. im going to run a cron job to do this so would like to disable caching. im using php ofcourse and was wondering how i can do this. Thx ...

Zend Framework, Doctrine and Caching Problems

I'm using Doctrine 1.2 with Zend Framework, and it's working just fine. Now I want to start using the results cache and query caching capabilities to reduce the load on DB server that powers the application. Oh, I'm also using Zend_Application and placing code in modules. Anyway, I setup my connections to Doctrine in the overall Boots...