PHP – Write to database and remove after set time
Basically when a user wishes to recover their password, I generate a hash and store it in a MySQL Database. I do not want this hash to exist forever though, but to be removed from the database after...
View ArticleZend_Cache memfs file vs APC
I just wanted to ask if anybody has got any experience with PHP Caching, or even in particular Zend_Cache with respect to using as backend a file on memfs in contrast to using APC for data caching.The...
View ArticleAPC – how to handle GC cache warnings?
On occasion, maybe once a day, our PHP web server using APC will raise an E_WARNING error that my error handler catches and logs. It looks similar to this:require_once() [function.require-once]: GC...
View ArticleWhat does apc.preload_path do in the APC settings?
Just curious. It’s undocumented in the manual here.Maybe someone who is familiar with the APC source code can explain?………………………………………. It specifies a directory from which APC loads cache data on...
View ArticleAPC configuration on Ubuntu 10.4. Problem with apc.shm_size,
I’ve just installed APC to cache my PHP code on my Ubuntu VPS server. Using sudo apt-get install php-apcsudo /etc/init.d/apache2 restartThis worked fine. However, I encounter some problems increasing...
View ArticlePHP Encoder and Accelerator
I’m looking for recommendations for PHP encoders and accelerators.From what I can tell, APC is the de facto standard for accelerators: http://php.net/manual/en/book.apc.php. As for encoders, I’m still...
View ArticlePHP APC Filter out large PDF files
There is not too much information in the PHP APC documentation about filtering files.“A comma-separated list of POSIX extended regular expressions. If any pattern matches the source filename, the file...
View ArticleHow to do a replace with Kohana_Cache
When working with Memcache in PHP, I rely on being able to replace existing values like so:$cache = new Memcache;$cache->set(‘foo’, ‘bar’); $cache->replace(‘foo’, ‘baz’);Unfortunately it doesn’t...
View ArticlePHP warning being thrown, Unknown: GC cache entry
We have a server at my work with APC installed on it, and about every 1-2 weeks, all of a sudden this error just starts being thrown and when it is throw it happens a lot. It will be perfectly fine for...
View Articlephp how to write data into json?
I am newer for php. I want make php page cache, query data from mysql and store data into json format. I have many questions:which type of file should I store? .json or .txt or .cache? for I also need...
View ArticleLooking for a PHP Caching Library with multiple back-end sto
I am looking for a PHP caching library that has multiple back-end storage adapters. For example, something that can save the cache in a file or in Memcache.Here are some of the libraries that I have...
View ArticleLarge Configuration for class, implementation suggestions
So I have a large class that I’m refactoring to be more flexible.well over 100 configurable properties (variables) in a INI file. Some are dev settings and others are production settings. Currently I...
View Article