Commit d117955a authored by Leigh B. Stoller's avatar Leigh B. Stoller

Bring back the Alternative PHP cache. The apc.so module is installed

in the php extensions directory, and the following two lines were
added to /usr/local/etc/php.ini:

	extension_dir = /usr/local/lib/php/20020429/
	extension="apc.so"

The new version is a little odd in that it is more difficult to clear
the cache, which we must do when we install new pages. Rather then
jump through too many hoops, I added a simple clearapc.php page, which
does nothing but make the call from within the webserver. I have
hooked this into the make install target using wget. If you care to
see what is currently in the cache, you can load this page:

	https://www.emulab.net/apc.php

which gives a non-pretty print dump of the cache. To clear the cache
from your web browser:

	https://www.emulab.net/clearapc.php
parent 73c5b2b7
......@@ -129,6 +129,7 @@ install: $(addprefix $(INSTALL_WWWDIR)/, $(ALLFILES)) \
rm -f icons; \
ln -s /usr/local/www/icons icons;
$(INSTALL_CVSWEBCGI)
wget -q -O /dev/null http://${WWW}/clearapc.php
post-install:
......
<?php
print_r(apc_cache_info());
print_r(apc_sma_info());
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
# This gets called by using wget from the makefile (install)
apc_clear_cache();
?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment