Hi all. I need some guidance on implementing a PHP cache engine in a
multi-tenant environment. I've done some research on the open-source
cache engines available--specifically, APC, XCache, and
eAccelerator--but I haven't found anything that speaks to my use case.
Hopefully someone will be able
On Tue, 2009-03-03 at 11:41 -0800, Damon Miller wrote:
My question then becomes the following: Is there a cache engine
available which can store multiple (different) copies of a source file
and serve them only to the appropriate request? Perhaps a better way
to
describe this would be a
explain the behavior I was seeing
otherwise. However, that may be a function of APC specifically and not
all PHP cache engines. I'll spend some time with eAccelerator and
hopefully it will work as expected.
Thanks again,
Damon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Jochem Maas wrote:
take note that APC does 2 things:
1. op code caching
2. manage some shared memory (a central place where you can stick stuff
that needs to be read again and again and again; but doesn't need updating
very often)
pear install apc failed without reason. I ended up
On Thu, January 19, 2006 12:56 am, Albert wrote:
Jochem Maas wrote:
take note that APC does 2 things:
1. op code caching
2. manage some shared memory (a central place where you can stick
stuff
that needs to be read again and again and again; but doesn't need
updating
very often)
pear
I wrote:
I am running SuSE 9.2 (Kernel 2.6.8-24-default) with Apache 2.0.50 and PHP
4.3.8 (as an Apache module) on a Celeron 900 with 304MB RAM. This machine
is used for testing. We have made some changes to our PHP application and
now the machine is having trouble serving the pages. Apache
on your *nix cmdline type this:
pear install apc
(if you don't have pear installed then you should fix that first ;-)
now read here about how to use it:
http://php.net/apc
I love it even though it crashes when caching the opcodes of certain
class files (php5 files that make
http://eaccelerator.net/HomeUk
Actually, is the former mmCache with a new team of developers and some
impovements.
The last known version of mmCache I've played with one week ago core dumped the
httpd on ./apachectl stop.
The last stable version of eAccelerator (0.9.3, I think) works like a
On Wed, January 18, 2006 9:37 am, Albert wrote:
For this I wanted to use mmCache (actually I want to use Zend
Performance
Suite but first I need to prove that it is worth $ 1000 per CPU and
from the
stats on the mmCache site mmCache is faster...) but it seems that the
mmCache project has
Did u tried memcached? http://www.danga.com/memcached/
Albert wrote:
I wrote:
I am running SuSE 9.2 (Kernel 2.6.8-24-default) with Apache 2.0.50 and PHP
4.3.8 (as an Apache module) on a Celeron 900 with 304MB RAM. This machine
is used for testing. We have made some changes to our PHP
Kevin Wang wrote:
My php5 web application needs to parse/marshall a bunch of large xml files
into
php5 objects at the beginning of handling each request. These xml files are
static across all the requests and it is really time consuming to
parse/marshall them into php5 objects.
What sort
Rasmus Lerdorf wrote:
Jasper Bryant-Greene wrote:
Have you looked at memcache?
http://www.php.net/manual/en/ref.memcache.php
He did say that serialization wasn't an option and you can't use memcached
without serializing. You may not realize you are serializing, but the memcache
extension
Hi All,
My php5 web application needs to parse/marshall a bunch of large xml files into
php5 objects at the beginning of handling each request. These xml files are
static across all the requests and it is really time consuming to
parse/marshall them into php5 objects.
I am wondering if there is
Kevin Wang wrote:
My php5 web application needs to parse/marshall a bunch of large xml files into
php5 objects at the beginning of handling each request. These xml files are
static across all the requests and it is really time consuming to
parse/marshall them into php5 objects.
I am wondering
Kevin Wang wrote:
Hi All,
My php5 web application needs to parse/marshall a bunch of large xml files into
php5 objects at the beginning of handling each request. These xml files are
static across all the requests and it is really time consuming to
parse/marshall them into php5 objects.
I am
Hi List
Not too sure if this is the right list to send to so forgive me for my
ignorance if it is incorrect.
My Question
I have a form which users need to fill out, (quite a lengthy one) it
consists of 5 or so pages with various questions on each!, the last page
submits the information and
Peter Justus wrote:
Hi List
Not too sure if this is the right list to send to so forgive me for my
ignorance if it is incorrect.
My Question
I have a form which users need to fill out, (quite a lengthy one) it
consists of 5 or so pages with various questions on each!, the last page
submits
Ave,
My whole Auto-Image verification application and has come to get stuck at
the Cache in IE. It¹s working fine in Safari on Mac, but IE is picking up
the image from the Cache no matter what. I¹ve tried the following:
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified: .
On Fri, May 20, 2005 12:11 pm, Rahul S. Johari said:
My whole Auto-Image verification application and has come to get stuck at
the Cache in IE. It¹s working fine in Safari on Mac, but IE is picking up
the image from the Cache no matter what. I¹ve tried the following:
Are you clearing out the
Probably, but not serializing at all, and stuffing the data directly into
shared memory would perhaps be faster, at least as I vaguely understood
the results of a thread on serialization on this very forum from a month
or two ago. (Check archives for serialize shared memory and Rasmus
Hi,
I'm developing a cache system. Which works in pseude code, like this:
class Cache {
function Fetchdata($id1,$id2,$id3) {
$id = md5($id1 . $id2 . $id3);
if ($this-DataIsExpired($id)) return false;
else return unserialize(file_get_contents($id));
}
function
On Mon, May 16, 2005 12:09 pm, Evert | Rooftop said:
$id1 $id2 and $id3 are when they are combined unique
* Is there a chance of collision when MD5 is used on the id's and the
ids are long strings
Yes. I think it's like 1 in 2 billion odds.
If you can concatenate $id1$id2$id3 and get a
Interesting idea. Using three identifiers, as a key.
md5() returns a 32 hex-digit value. That means that there are can only
be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This
means that there there is a 1 in
340 chance of a collision between
Rory Browne wrote:
Interesting idea. Using three identifiers, as a key.
md5() returns a 32 hex-digit value. That means that there are can only
be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This
means that there there is a 1 in
340 chance of a
Hello,
I have an web application that checks users rights to specific parts of the
apllication at the beginning of each page. However I noticed, with the help
of Jason Barnett, that opera caches pages locally and the users rights check
fails. The application works fine with Firefox and IE. So I
Hi,
I'm having a bit of a problem.
I include a class in my script, the first time run fine, and then if I
change anything in my class, changes are not reflected on the browser,
it's like it's still the old class which is used. I've cleared the
browser cache, force a pragma no-cache, but no,
From: Mister Jack [mailto:[EMAIL PROTECTED]
Hi,
I'm having a bit of a problem.
I include a class in my script, the first time run fine, and then if I
change anything in my class, changes are not reflected on the browser,
it's like it's still the old class which is used. I've cleared the
To add to the discussion: are you using anything like the Zend
performance cache? MMTurck? Smarty? I ask because there are various
programs out there (some PHP-based, some not) that will cache PHP code.
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA |
Evert - Rooftop Solutions wrote:
Mark Charette wrote:
Evert - Rooftop Solutions wrote:
I heard that shared memory is actually slower than writing and
reading a file and it is not available on windows systems.
Hmmm ... that's an interesting thing you heard concerning shared
memory. Care to share
Hi people,
I have written an extensive web application frameworks, and I keep
seeing my execution time and memory-usage growing. Right now it is not a
problem, but before it get's out of hands I will need to create a good
cache engine.
My cache engine requires that I can cache method results,
Evert - Rooftop Solutions wrote:
I have written an extensive web application frameworks, and I keep
seeing my execution time and memory-usage growing. Right now it is not a
problem, but before it get's out of hands I will need to create a good
cache engine.
My cache engine requires that I can
Chris Smith wrote:
I have seen some people using stornig cached items in shared memory.
This is explained in some detail here:
http://www.danga.com/memcached/
I heard that shared memory is actually slower than writing and reading a
file and it is not available on windows systems.
There are PHP
Evert - Rooftop Solutions wrote:
I heard that shared memory is actually slower than writing and reading a
file and it is not available on windows systems.
Hmmm ... that's an interesting thing you heard concerning shared memory.
Care to share _who_ told you that?
I'd like to make sure I don't
Mark Charette wrote:
Evert - Rooftop Solutions wrote:
I heard that shared memory is actually slower than writing and reading
a file and it is not available on windows systems.
Hmmm ... that's an interesting thing you heard concerning shared memory.
Care to share _who_ told you that?
I'd like
Mark Charette wrote:
Evert - Rooftop Solutions wrote:
I heard that shared memory is actually slower than writing and
reading a file and it is not available on windows systems.
Hmmm ... that's an interesting thing you heard concerning shared
memory. Care to share _who_ told you that?
I'd like
Evert - Rooftop Solutions wrote:
Check it out, is in old article, but it says |shm| -- The |shm|
container stores the cached data in the shared memory. Benchmarks
indicate that the current implementation of this container is much
slower than the |file| container.
Which, of course, is miles away
Hi there,
I am trying to find a open source PHP Cache extension. After trying out ionCube
PHP Accelerator (http://www.php-accelerator.co.uk) I had to remove it from the
system since it brought down the server every few weeks due to some memory leak.
There is also APC, but the latest build
it doesn't care what language
you are using to provide the content.
Tom
Merlin wrote:
Hi there,
I am trying to find a open source PHP Cache extension. After trying
out ionCube PHP Accelerator (http://www.php-accelerator.co.uk) I had
to remove it from the system since it brought down the server every
* Merlin [EMAIL PROTECTED]:
I am trying to find a open source PHP Cache extension. After trying
out ionCube PHP Accelerator (http://www.php-accelerator.co.uk) I had
to remove it from the system since it brought down the server every
few weeks due to some memory leak. There is also APC
From: pan [EMAIL PROTECTED]
What provides the new data?
Can you run a html update from whatever is supplying the new data?
Hmm, I don't think I can. The data is stored in MySQL by a separate program,
but that data can be used in more pages.
I think the only good solution would be to run a
Octavian Rasnita wrote:
From: pan [EMAIL PROTECTED]
What provides the new data?
Can you run a html update from whatever is supplying the new data?
Hmm, I don't think I can. The data is stored in MySQL by a separate program,
but that data can be used in more pages.
I think the only good
Hi all,
I want to create an html cache of a page, like when that page is saved to
the disk and let the visitors download that static page and not a dynamic
one.
Of course, a dynamic PHP program will load that static page and display it,
but without need to connect to databases, to make
Octavian Rasnita wrote:
Hi all,
I want to create an html cache of a page, like when that page is saved to
the disk and let the visitors download that static page and not a dynamic
one.
Of course, a dynamic PHP program will load that static page and display it,
but without need to connect to
Gentlemen,
After some study I am very confident that the best solution is to use
squid accelarator rather with out with out any of these caching programs.
The ideas is this you can run squid 'in front of' your webserver and it
will cache the generated html output from the php script and deliver
The problem is that I don't know how to automaticly decide when it is the
right moment to update the cache and this is very important.
I get some data from a database and the PHP program doesn't know when the
database gets updated by another program, so it cannot create the cache
for
that
Hello List,
I am using the following in a PHP script:
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma:
Hello Roger,
If you find a solution, I would also be interested to to see it. I
have tried almost everything to get Mac IE to not use the cache. It
just doesn't seem to accept anything.
On 18 Feb 2004, at 18:58, Roger Spears wrote:
Hello List,
I am using the following in a PHP script:
On Mon, 20 Oct 2003 14:44:50 -0400
Joshua Minnie [EMAIL PROTECTED] wrote:
Does anybody know how I can make force a javascript file (written in
PHP) to be cached if the user agent allows it?
Here is the situation:
I am creating a dropdown menu system that contains a customer list,
loaded
The it that you were asking about was the server. The javascript file is
actually a PHP file that produces the JavaScript that I need. I only have
one access to a database and a while loop to generate the code. Here is the
code pieces:
[code]
// already connected to the db
$sql = SELECT * FROM
On 2003.10.21, at 22:28 Asia/Tokyo, Joshua Minnie wrote:
The it that you were asking about was the server. The javascript
file is
actually a PHP file that produces the JavaScript that I need. I only
have
one access to a database and a while loop to generate the code. Here
is the
code
]
Sent: Tuesday, October 21, 2003 11:56 AM
To: Joshua Minnie
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] cache control with javascript
On 2003.10.21, at 22:28 Asia/Tokyo, Joshua Minnie wrote:
The it that you were asking about was the server. The javascript
file is
actually a PHP file that produces
Does anybody know how I can make force a javascript file (written in PHP) to
be cached if the user agent allows it?
Here is the situation:
I am creating a dropdown menu system that contains a customer list, loaded
from a database. This list is written to the javascript file for the menu.
The
This is the header of my aplication
?php
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past
header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified
header(Cache-Control: no-store, no-cache, must-revalidate); // HTTP/1.1
header(Cache-Control: post-check=0,
--- Klaus_Kaiser_Apolinário [EMAIL PROTECTED] wrote:
But this Cache control are not working
What do you mean by not working? Something is cached that shouldn't be? Also,
you are sending multiple Cache-Control headers, sending expired dates, etc. Try
a more straightforward approach first:
--- Tony Tzankoff [EMAIL PROTECTED] wrote:
I have a webpage written in the latest version of PHP and need
a little bit of help with a rather pesky cache issue. Part of
the source code is as follows:
page.php
?
echo meta http-equiv=pragma content=no-cache;
echo meta
I have a webpage written in the latest version of PHP and need a little bit
of help with a rather pesky cache issue. Part of the source code is as
follows:
page.php
?
echo meta http-equiv=pragma content=no-cache;
echo meta http-equiv=expires content='-1';
.
.
.
echo
what code can I put at the begining of a php page so that the result from
the cache is never shown ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i had this problem when my pages were cached when I wanted them to be
refreshed, so I went deep in it and included all the recomended headers
by the manual, and it worked fine.. I also tried on a clean version, by
emptying up the browser cache and temp files on my client machine...
until one page
on 02/12/02 10:49 PM, Elmota Abdul Ayyash ([EMAIL PROTECTED]) wrote:
i had this problem when my pages were cached when I wanted them to be
refreshed, so I went deep in it and included all the recomended headers
by the manual, and it worked fine.. I also tried on a clean version, by
emptying
Question.
I have a problem with forms not been cached when they click submit... And then the
back button,
I know of some fields that can not be cached (password),
I am thinking I am not doing something that asks it to cache..
Anyone have any tips or a place to start looking.
Thanks
Where i can find more help about cache control
Thx
Jeroen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Jeroen,
Where i can find more help about cache control
Here: http://www.google.com/search?q=help+about+cache+control (495,000
results)
Or did you mean something a bit more specific?
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
indeed
more specific
Jeroen
At 11:00 31-5-2002 +0100, you wrote:
Hi Jeroen,
Where i can find more help about cache control
Here: http://www.google.com/search?q=help+about+cache+control (495,000
results)
Or did you mean something a bit more specific?
Cheers
Jon
--
PHP General Mailing
Hi Jeroen,
Where i can find more help about cache control
http://www.google.com/search?q=help+about+cache+control
Or did you mean something a bit more specific?
indeed
more specific
Well, seeing as you're not sharing the actual question with the mailing
list, this answer may not be
Date: Fri, 31 May 2002 12:13:40 +0200
To: Jon Haworth [EMAIL PROTECTED]
From: Jeroen Timmers [EMAIL PROTECTED]
Subject: RE: [PHP] Cache Control
I want info on the internet where i can find a manuel.
I want a statement that de page always refresh
the page is a php script and sometimes it comes
Hi Jeroen,
I want info on the internet where i can find a manuel.
http://www.google.com/search?q=http+cache+control+headers
the page is a php script and sometimes it comes out of a proxy but
that is not allowed.
It's not something you have absolute control over - some proxies are
I dont know too much about cache control, but some of the users who use
my script,
has problems with cookies. They are able to log in and the cookie is
set and they click a link and get booted out.
This past week, we noticed that when we commented out
header (Expires: Mon, 26 Jul 1997
is there some command with php dat
the page some images not load out the cache
but reloading the image?
Thx Jeroen
Hallo Jeroen ;)
There are several ways to control the caching of pages and images,
including sending headers
and META tags. These are ofcourse HTML/HTTP features and not specific to
PHP.
Because it seems to be needed to send a combination of these to make it
work for a situations,
I prefer
I have a text box on my page and a submit button. The text box value is whatever it
grabs from the database. If the user deletes what is in the text box and puts in his
own text, then hits submit, the script updates that field with whatever the user
inputs.
Problem is, after the user hits
Subject: [PHP] Cache Being Bad
I have a text box on my page and a submit button. The text box value is
whatever it grabs from the database. If the user deletes what is in the text
box and puts in his own text, then hits submit, the script updates that
field with whatever the user inputs.
Problem
why does the cache control header generated by php (under
session_cache_limiter = nocache) needs to have no-store? It
makes pressing Back in the browser requests a new version of the
page (which is unwanted in some situations, e.g. while filling
form and needs to edit a few fields before
Hi,
I heard about JSP a lot recently though I doing PHP programing now.
somebody said jsp is most fastest in (asp , php , jsp).
I want to know if it is true . And if I use PHP + php cache , can I speed up
PHP as same as JSP as they said.
I just want to know which is the best solution ,(php + php
/2001 +0800, mydata wrote:
Hi,
I heard about JSP a lot recently though I doing PHP programing now.
somebody said jsp is most fastest in (asp , php , jsp).
I want to know if it is true . And if I use PHP + php cache , can I speed up
PHP as same as JSP as they said.
I just want to know which
ody said jsp is most fastest in (asp , php , jsp).
I want to know if it is true . And if I use PHP + php cache , can I speed
up
PHP as same as JSP as they said.
I just want to know which is the best solution ,(php + php cache) or jsp
.
--
PHP General Mailing List (http://www
PM 9/27/2001 +0800, mydata wrote:
Hi,
I heard about JSP a lot recently though I doing PHP programing now.
somebody said jsp is most fastest in (asp , php , jsp).
I want to know if it is true . And if I use PHP + php cache , can I speed
up
PHP as same as JSP as they said.
I just want
. Most of other developers will
probably agree with me.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: mydata [mailto:[EMAIL PROTECTED]]
Sent: giovedì 27 settembre 2001 9.04
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Does PHP + PHP CACHE can vs JSP ?
I just want to know which
Hi everyone! I have the following problem:
I don't want any of my site's pages to be saved on any browser's cache.
Yet, I want all HTML forms to keep their data when the user changes to
another page without submiting and then comes back using the back button.
I have seen changing the
Hi everyone! I have the following problem:
I don't want any of my site's pages to be saved on any browser's cache.
Yet, I want all HTML forms to keep their data when the user changes to
another page without submiting and then comes back using the back button.
I have seen changing the
//www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: "Barry Russell" [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Tuesday, March 20, 2001 8:25 PM
Subj
Can anyone point me at a way to pick up a url entered in a form
and construct an HTTP request that will download the requested
page into the browser window with an enforced refresh that
bypasses a local cache ?
(I have a tough local policy to get thru which doesn't take account
of developers
Hi,
This might be a little of topic...
I am having real trouble with cached PHP pages, they just never seem to
refresh... I have dissabled my local cache (IE5.5 Win2k) to the best of my
knowledge (suggestions on how to do this properly welcome) but are still
having trouble.
I am not sure whether
ragma: no-cache");
header("Expires: Mon,26 Jul 1997 05:00:00 GMT");
-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 7:39 PM
To: PHPlist
Subject: [PHP] Cache
Hi,
This might be a little of topic...
I am having real trouble with cached P
Yup, at the beginning of your PHP script. Sorry, I should have mentioned
that... :)
-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 8:04 PM
To: Tyrone Mills; PHPlist
Subject: RE: [PHP] Cache
That goes in the PHP code no?
-Original
Aaron,
this is obviously exactly what i need!!
Thanks a lot - this saved me days of work!
Joe
-Ursprungliche Nachricht-
Von: Aaron Tuller [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. Marz 2001 05:41
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: [PHP] Cache Database
Hi all,
i'm appreciating any comments on this idea:
I'm about to create a completely database driven site (mySQL).
Almost all of the output is generated from database data.
A big part of the data is rather static of nature, eg. updated once a month.
A smaller part is quite dynamic, e.g.
At 11:19 PM +0100 3/12/01, Joachim Maier wrote:
To create the HTML-cache page i need to build the whole HTML-page content in
memory, instead of echoing it back to the user's browser, and finally write
it to disk. That means, i have to write all HTML in php-code. I can't just
embed php-parts in
i can find these functions
and what's their name. Are they available in php3?
Thanks a lot,
Joe
-Ursprungliche Nachricht-
Von: Aaron Tuller [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 12. Marz 2001 23:26
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: [PHP] Cache Database-d
,
and run these from cron. Using server-side-includes can make this a much
easier process.
-Original Message-
From: Joachim Maier [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 4:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Cache Database-driven site
Hi all,
i'm appreciating any
23:26
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: [PHP] Cache Database-driven site
At 11:19 PM +0100 3/12/01, Joachim Maier wrote:
To create the HTML-cache page i need to build the whole HTML-page content
in
memory, instead of echoing it back to the user's browser, and finally write
Hi! I have this php answer on the request sent from flash5 to serverside
php-file:
records=8score0=14name0=jannamed0=hej4date0=16:11:32score1=13name1=jannamed1=hej3date1=16:06:52score2=12name2=jannamed2=hej2date2=16:06:42score3=11name3=jannamed3=hejdate3=16:06:31score4=10name4=Jannamed4=hej
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
--
Chris Lee
Mediawaveonline.com
em. [EMAIL PROTECTED]
ph. 250.377.1095
ph. 250.376.2690
Dear folks,
Anybody out there with experience using Alternative PHP Cache
(http://apc.communityconnect.com)? I am at a loss for information regarding
its use with PHP, specifically, Zend Optimizer. Thanks in advance.
Herman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
PHP cache (
http://bwcache.bware.it/ )? I'm curious the resutls ;)
Regards,
--
You mean you have Windows98 and still have available memory?!?
Marcin http://wfmh.org.pl/~carlos/
mailto:[EMAIL PROTECTED]
--
PHP General
94 matches
Mail list logo