WP-Cache 1.5 Released
New!: Check version 2.0.
Current version: 1.5.6 (2005-05-03). See changelog in the first lines of php source.
Important: version 1.5.3 and 1.5.4 fixed a couple of showstoppers. Upgrade it please, you will get also flock() if semaphores does not work in your server.
This new version of wp-cache is optimized for WordPress 1.5 (and higher). It makes use of WP_CACHE hook, so setup and configuration is much easier, and I also optimized it still a little more.
UPDATE: since version 1.5.2 it autodetects if semaphores are available, if not it uses flock().
For installing it:
Just download the file and save it as
wp-content/advanced-cache.phpinto you WordPress directory.Create the
wp-content/cachedirectory and make sure the web server can write in this directory.Edit
wp-config.phpand add the following line:define(’WP_CACHE’, true);
Profit!
That’s all.
Hello,
I use latest SVN version, my webhosts seem to be OK with your requirements (see a phpinfo at http://240plan.ovh.net/test.php )
And I still have the same problem :
- .html files are created by the cache system
- .meta files are not
Luc
Comment by Luc — Saturday 12/3/2005 @ 18:54
Are you using Apache? It gives no information about it.
Please check `apache_response_headers()` works in your system.
Comment by gallir — Saturday 12/3/2005 @ 19:39
wp-content/cachedirectoryRicardo, ya se que es una tontería, pero pon en el artículo
wp-content/cachedirectory.Es que como esta junto había creado el directorio cachedirectory en vez de cache.
…write in tgis directory.
Ahí se ta colao una g.
Comment by davidcg — Saturday 12/3/2005 @ 19:48
Gracias, me faltaba un espacio y sí, puse l g por la h…
Comment by gallir — Saturday 12/3/2005 @ 19:52
Please check apache_response_headers() works in your system
Ricardo,
No it doesn’t this fucntions returns :
Fatal error: Call to undefined function: apache_response_headers()
$_SERVER[SERVER_SOFTWARE] returns ‘Apache’
(see : http://blog.saint-elie.com/test_cache.php )
Luc
Comment by Luc — Saturday 12/3/2005 @ 21:07
Please check it now. No it checks if the functions exists…
Comment by gallir — Saturday 12/3/2005 @ 23:01
Ricardo
The new version works perfectly well and now both .html and .meta files are greated.
Perfect !!
Luc
Comment by Luc — Sunday 13/3/2005 @ 0:23
I think your WP-Cache 1.5 isn’t working for me. I’m supposed to see something in wp-content/cache, right? I don’t (after accessing my blog). I have upload advanced-cache.php to wp-content/ and created wp-content/cache with write capabilities, like you said. I added “define(’WP_CACHE’, true);” after “$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2′ or ‘mylogin_’” in wp-config.php. What’s wrong?
Comment by Stephen — Sunday 13/3/2005 @ 1:02
[…] nstraseña aleatoria que podreis cambiar. En plan rollo técnico decir que he añadido el parche de Galli que hace de caché. Vereis, el php genera html cada vez que entrais en una página […]
Pingback by La Zarza Ardiendo » Blog Archive » Noticias del administrador (u sease yo) — Sunday 13/3/2005 @ 1:50
Stephen you are sure about permisions? Is the apache user who needs write capabilities,
chown -R www-data cacheComment by davidcg — Sunday 13/3/2005 @ 2:17
Aquest és el missatge que m’apareix quan instal·lo el wp-cache:
Fatal error: Call to undefined function: sem_get() in …wp-content/advanced-cache.php on line 101
Què estic fent malament??
Comment by Cubells — Sunday 13/3/2005 @ 10:58
Això és perquè no tens compilat i/o carregat el mòdul de semàfors (sysvsem) del php4.
Comment by gallir — Sunday 13/3/2005 @ 11:59
davidcg: Yes, I CHMOD’d wp-content/cache to 777.
Comment by Stephen — Sunday 13/3/2005 @ 14:24
Looks like a parse error here, has anyone had trouble with just a blank page coming up?
Comment by Basil Crow — Monday 14/3/2005 @ 13:36
Please check you PHP error logs, possibly because you don’t have SysV semaphores modules included/loaded.
PS: I don’t know why there are so many php4 installations w/o such an fundamental modules.
Comment by gallir — Monday 14/3/2005 @ 13:38
is anyone aware of a successful installation of this on an OSX Server box?
Comment by dherren — Monday 14/3/2005 @ 14:42
There should be no problems at all, the only extra reequirements –compared to WP– is the System V semaphores. You can check it ou by doing a small script with only phpinfo() function. Then check in the output if “sysvsem” is enabled.
Comment by gallir — Monday 14/3/2005 @ 15:01
I get the same error
Fatal error: Call to undefined function: sem_get() in …wp-content/advanced-cache.php on line 101
I then went and installed the perl module IPC::Semaphore.
I still get the same error. Any ideas?
Comment by John — Monday 14/3/2005 @ 15:18
It’s not a Perl module problem, but a **PHP** module. See #15 and #17.
Comment by gallir — Monday 14/3/2005 @ 15:30
Yes, I can confirm that PHP doesn’t have this module on TextDrive (as of today, at least).
Comment by Basil Crow — Tuesday 15/3/2005 @ 19:59
Will this work on IIS 6 servers… Or only with apache web servers? If not is there anything like this available or in the works for IIS 6?
Comment by guht — Tuesday 15/3/2005 @ 20:03
I finally got the sysvsem module installed by my host. Everything works perfectly.
Thankyou!!
Comment by Ian — Tuesday 15/3/2005 @ 23:37
Hello,
I installed as per instructions, and checked that sysvsem is present. However, my wp-content directory is still empty. Is there any way to troubleshoot what is going wrong, as I could not find anything in my server error logs as well.
Thanks!
Ivan
Comment by Ivan — Wednesday 16/3/2005 @ 10:49
[…] As part of my general obsession with tweaking things and general efficiency, I have set up wp-cache by Richard Galli. Currently looking good, though I am not sure that I get the traffic to […]
Pingback by the-way-to-the-centre » wp-cache — Wednesday 16/3/2005 @ 18:30
Hola Ricardo, he instalado tu plugin en mi blog y estoy experimentando
ciertos problemas con los feeds: cuando no hay ningun articulo por leer,
akregator me muestra el tipico icono rojo indicando que han habido
problemas al descargar el xml; por el contrario, cuando hay articulos
nuevos si que salen correctamente.
Es un comportamiento un poco extraño, no se si te ha pasado algo parecido.
Comment by Moises — Wednesday 16/3/2005 @ 23:34
Im getting this Error : Call to undefined function: sem_get()
Im Running :
Wordpress 1.5
WP-Cache 1.5
Apache 2.0.53
PHP 4.3.10
On Win2k3 Box….
Comment by guht — Thursday 17/3/2005 @ 4:48
Alright after pulling my head out my universe sized a$$ - I read the requirements! Upon doing such an obivious first step I noticed that WP-Cache requires ’sysvsem’… which has the sem_get function… which is not supported in windows..
SOOO for anyone else slow like me… WP-CACHE WILL NOT RUN ON WINDOWS BOX (Time to install a real OS boys and girls)… More details below..
sem_get
(PHP 3>= 3.0.6, PHP 4 >= 4.0.0)
sem_get — Get a semaphore id
Description
int sem_get (int key [, int max_acquire [, int perm]])
Returns: A positive semaphore identifier on success, or FALSE on error.
sem_get() returns an id that can be used to access the System V semaphore with the given key. The semaphore is created if necessary using the permission bits specified in perm (defaults to 0666). The number of processes that can acquire the semaphore simultaneously is set to max_acquire (defaults to 1). Actually this value is set only if the process finds it is the only process currently attached to the semaphore.
A second call to sem_get() for the same key will return a different semaphore identifier, but both identifiers access the same underlying semaphore.
See also: sem_acquire() and sem_release().
Note: This function does not work on Windows systems.
Comment by Anonymous — Thursday 17/3/2005 @ 5:36
Is there a way to do this without the semaphore module? I don’t think many shared hosts have this installed by default (neither of mine do). I think it’s a great plugin and I’d love to see it be in wider use. Great work at any rate!
Comment by Tyler — Saturday 19/3/2005 @ 5:14
There is no way to do it right without concurrency control, which can be done with semaphores or mmap. I don’t believe the second will be available if the first is not.
Comment by gallir — Saturday 19/3/2005 @ 9:21
WP-Cache 1.5.1
This is a small bug fix release. I realised that WP returns a zero sized buffer if the client sends “If-Modified-Since” header. If we were unlucky enough, i.e., the right cache file was already expired, it will generate a bogus (empty) cache. This re…
Trackback by Ricardo Galli, de software libre — Tuesday 22/3/2005 @ 2:10
[…] h my new host, the performance was very disappointing. The fix for it came in the form of WP-Cache, which speeds up WP significantly. I can now say that with performance no longer being a […]
Pingback by Olaguez.net » Blog Archive » On Switching to Wordpress — Tuesday 22/3/2005 @ 17:32
Is it correct, that the /cache directory stays empty ?
Comment by MAyk — Tuesday 22/3/2005 @ 19:32
In the name of speed… Chache…
In mijn eeuwige streven naar snelhied, en het efficient laten verlopen van allerhande processen heb ik de pm-cache geinstalleerd. Dit zou ervoor moeten zorgen dat de pagina’s sneller geladen worden. …
Trackback by Mayk's Blog — Tuesday 22/3/2005 @ 19:41
To #32, no it should have files. Check if it’s enabled and also you must see the following text at the end of the html source:
<!– Dynamic Page Served (once) in 1.000 seconds –>
<!– Static Page Served in 0.000 seconds –>
Comment by gallir — Tuesday 22/3/2005 @ 20:04
@martes
I’ve got it working now.. it doesn’t display the generation time, but the cache directory geta populated. The advanced-chache.php had an invalid extension (damn windows), it added .txt at the end..
And i didn’t notice that at first..
Now for the generation time.. NE thoughts ??
Comment by Mayk — Tuesday 22/3/2005 @ 20:46
The plugin worked right away for me, but it also seems to cache administrative files that it shouldn’t. In particular, wp-admin/post.php gets cached which seems to prevent comment moderation. And wp-login.php is cached, too. Is this a known issue?
Comment by Kieran — Thursday 24/3/2005 @ 19:23
I think I see what was happening. WP-cache uses the variable
$script = basename($_SERVER[’SCRIPT_NAME’]);
to see whether the current script is administrative or not. (It checks to see whether the string ‘wp-’ is in it. But my host provider (Dreamhost) runs PHP as a module, I think, and this disables the function (eval()?) that makes the SCRIPT_NAME variable useful. It will return something /cgi-system/php.cgi instead of something useful.
Replacing the variable assignment above with
$script = basename($_SERVER[’PHP_SELF’]);
seems to fix this problem. It seems like this was an issue for the Wordpress developers earlier in the year: see this report.
Comment by Kieran — Thursday 24/3/2005 @ 19:24
You have to replace SCRIPTNAME with PHPSELF in the if statement too, obviously.
`if( !in_array($script, $acceptableFiles) && strstr($_SERVER[’PHP_SELF’], ‘wp-’) )
return;`
Comment by Kieran — Thursday 24/3/2005 @ 19:25
Kieran, try it now please, I changed it.
Thanks, I did not see that problem, never…
Comment by gallir — Thursday 24/3/2005 @ 19:35
Yes, it works perfectly now. Great! It’s making a big difference to the performance of our site.
Comment by Kieran — Thursday 24/3/2005 @ 21:32
I tried installing it but when I loaded my home page with the cache for the first time, it did not display the sidebar. I disabled the cache, re-enabled it, tried again, and got one of these dreaded php errors: Parse error: parse error, unexpected T_STRING in /home/me/www/wp-content/cache/wp-cache-999a06cb39ebed8dbd2b2ee8f6be7fc5.html on line 1
Any idea what this is about?
Comment by Steph aka bunnywabbit_ — Sunday 27/3/2005 @ 7:38
Please, copy&paste the line indicated by that file, i didn’t see before. Are you using dynamic php inside?
Comment by gallir — Sunday 27/3/2005 @ 13:16
[…] e Plugin For Wordpress
䏿 29, 2005 on 6:03 pm | In ITç§æ, Blog |
Wp-cacheå¯ä»¥ç¨cacheçæ¹å¼å¿«åé é¢ï¼æé«ç覽WordPressæçæè½ã […]
Pingback by ç¡åå°Blog » WP-cache Plugin For Wordpress — Tuesday 29/3/2005 @ 12:03
[…] any caching stuff people have created that works decently. I found a few, and settled on WP-Cache. Easy to install, and it works well. As soon as it was installed, and got a cache of the […]
Pingback by The Rambler » Blog Archive » WP-Cache — Saturday 2/4/2005 @ 9:31
Great piece of work! Is there an easy way to flush or clear the cache?
Comment by stever — Sunday 3/4/2005 @ 20:49
Tp #45: Yes, there is an easy trick. Edit (there is no need to change it) any comment or post.
If you have shell access, delete all files in the “cache” directory.
Comment by gallir — Sunday 3/4/2005 @ 21:11
gallir thanks. I do not have shell access. I can delete files via ftp or cpanel. I was just wondering about a lazier way.
Comment by stever — Sunday 3/4/2005 @ 21:28
So, apply first trick.
Comment by gallir — Sunday 3/4/2005 @ 21:31
Hi Ricardo, I am trying to get wp-cache to work without any luck so far.
I did everything suggested so far and it simply is not working for me.
No files get created in the /wp-content/cache folder, which is writeabel and owned by www-data.
Do you still have one more trick up your sleeve to get it to work?
My Wordpress is 1.5, phpinfo –> http://strikdiploma.nl/test.php
Thanks a lot.
Comment by Erwin — Sunday 10/4/2005 @ 1:57
Not at all, perhaps you didn’t enable it in wp-config.php? Check last lines in the generateed html to check if you see some comments. Check also you php logs. But it seems your php setup is right.
Comment by gallir — Sunday 10/4/2005 @ 2:03
define(’WP_CACHE’, true);
is right behind
$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2′ or ‘mylogin_’
in wp-config.php.
No commentlines in the html and accessing advanced-cache.php gets me a blank screen, is that supposed to happen?
Comment by Erwin — Sunday 10/4/2005 @ 2:15
Sometimes all it needs is some rest and relaxation: it works and I did not change a thing.
Thanks Ricardo.
Comment by Erwin — Sunday 10/4/2005 @ 9:43
Installed and cached pages are saving html and meta files, but display with garbled up strings. See for instance: http://urlgreyhot.com/wordpress/page-1/
Any idea what’s going on here?
Thanks for any help.
Comment by Michael — Sunday 10/4/2005 @ 13:52
Just in case, did you disable “send compressed html”?
Comment by gallir — Sunday 10/4/2005 @ 18:00
Ah. Thank you, Domingo. That was it. Excellent work.
Comment by Michael — Monday 11/4/2005 @ 15:50
Domingo is “Sunday”, I’m that “gallir” (Ricardo Galli).
Comment by gallir — Monday 11/4/2005 @ 15:53
okay, i’ve been stressing with this for an hour now
i have re-read the instructions 10’s of times. i have disabled gzip. i have created advanced-cache.php in wp-content, i have added define (’WP_CACHE’, true); to wp-config.php, i have set the permissions of ‘cache’ directory to 777, and yet there is absolutely nothing that appears in it!
//edit
never mind, i got it work while i was typing this text, lol
i don’t even know what i did that triggered the work\notwork setting but it’s fine now. thanks a lot for the plugin!
Comment by pfx — Monday 18/4/2005 @ 0:37
[…] ://www.sencer.de/article/1036/wordpress-vs-textpattern—a-quick-performance-benchmark#c000148 http://mnm.uib.es/gallir/posts/2005/03/12/178/ (now with flock) http://lightpress.org/
The solution
http://www.sencer.d […]
Pingback by Wordpress Cookbook » Speed up page loads — Monday 18/4/2005 @ 5:47
I can’t get it working - and I did everything perfectly too.
Comment by Dan — Monday 18/4/2005 @ 6:08
This is a fantastic utility but I ran into a few problems. I’ll mention my solutions (if they can help anyone):
I have a few external scripts which hook into WP but don’t work with caching. I now point them at wp-config-nocache.php, a copy of wp-config.php that does not define the WP_CACHE constant.
Feeds invalidated due to caching (removing their wp-*.php files from the $acceptableFiles array doesn’t affect feeds accessed through /?feed ), so in wp-blog-header.php I added an if statement to test for the feed GET query, and if exists require wp-config-nocache.php instead.
Comment by Kafkaesquí — Tuesday 19/4/2005 @ 19:22
How can I exclude certain pages from caching? I use a send-a-page
utility (javascript) that does not work properly with cache enabled.
Comment by joeb — Friday 22/4/2005 @ 16:48
Every page that begins with “wp-” is not cached, at least it’s listed in $acceptableFiles.
If you want to always execute part of a page, see http://mnm.uib.es/gallir/posts/2005/02/01/108/, the tag “mclude”, as in Staticize.
Comment by gallir — Friday 22/4/2005 @ 17:47
wp-* is the solution. WP-Cache greatly enhances performance. Thank you for both.
Comment by joeb — Friday 22/4/2005 @ 19:09
Can someone make an illustrated guide for idiots (such as myself)
Comment by Dan — Sunday 24/4/2005 @ 5:01
Me da estos errores en el panel de control:
Warning: Cannot modify header information - headers already sent by (output started at /home/filex/public_html/wp-settings.php:156) in /home/filex/public_html/wp-admin/admin.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /home/filex/public_html/wp-settings.php:156) in /home/filex/public_html/wp-admin/admin.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at /home/filex/public_html/wp-settings.php:156) in /home/filex/public_html/wp-admin/admin.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /home/filex/public_html/wp-settings.php:156) in /home/filex/public_html/wp-admin/admin.php on line 9
¿Cómo puedo solucionar eso?
Comment by filex — Sunday 24/4/2005 @ 20:44
Al #65: Eso no es problema del wp-cacge, sino que has editado el wp-settings.php y has agregado espacios o un “enter” al final. No tienes que estar, lo último tiene que ser “?>”.
Comment by gallir — Sunday 24/4/2005 @ 21:07
How do you instruct the file not to cache ANYTHING in the WP-ADMIN file?
Comment by Anonymous — Monday 25/4/2005 @ 14:23
WP-Cache does not cache anything that begins with “wp-”, but those files members of “$acceptableFiles”, which are by default:
‘wp-atom.php’, ‘wp-comments-popup.php’, ‘wp-commentsrss2.php’,
‘wp-links-opml.php’, ‘wp-locations.php’, ‘wp-rdf.php’,
‘wp-rss.php’, ‘wp-rss2.php’
Comment by gallir — Monday 25/4/2005 @ 14:43
There is a small bug here. ECTO software blog editor (http://ecto.kung-foo.tv/) and WP-CACHE don’t work together. Because of the output of wp-cache (dynamic page served …blahblah) in the xmlrdc.php file. When wp-cache writes that to the xml file as well, it then probably isn’t (clean) xml anymore. Because of this (try ECTO and see it in the console) that ECTO keeps waiting on something, disable wp-cache (// in wp-config) and all works fine. Probably this is just a small fix. (xmlrdc.php should not have the dynamic/static text or you should put it in xml tags). thanks
Comment by Tr909 — Monday 25/4/2005 @ 15:00
If you have problems with a file, just add it to the if in line 77. Altough I think wp-cache should disable caching for POSTs (as it’s the case for xmlrpc.php).
Comment by gallir — Monday 25/4/2005 @ 15:54
### New version**: 1.5.5.
I just added a control, it does not cache if the HTTP method is “POST”.
Please, #69, check it out to see if it solves you problem.
Comment by gallir — Monday 25/4/2005 @ 16:26
Works remarkably well.
Just wondering: Would you be so kind to guide me so as to modify StaticizeClean? I’m using a recent post and a recent comment plugin in the sidebar, so I’d be seeking to flush the cache much about anytime something is posted.
Comment by Denis de Bernardy — Monday 25/4/2005 @ 18:31
To #72: Wp-cache already flushes the cache everytime a new article or post is added or edited.
Comment by gallir — Monday 25/4/2005 @ 18:34
Man, is this Galli guy fast, 1.5.5 won’t cache when vars are POST submitted.
Galli can you please maybe edit the post title, maybe wp-cache / advanced-cache 1.5.x where you can also keep track of the version numbers (now at 1.5.5 already and this post doesn’t reflect current status). thanks Galli, great work.
For the people who are interested i was also very happy with this alternative wp-admin interface, it’s a plugin.
via: http://wordpress.org/support/topic.php?id=27097#post-153046
file: http://homepage.mac.com/kohlmannj/.Public/wpadminredesign.zip
screenshots:
http://homepage.mac.com/kohlmannj/.Pictures/wp.jpg
http://homepage.mac.com/kohlmannj/.Pictures/wp-2.jpg
Comment by Tr909 — Monday 25/4/2005 @ 19:20
Seems to be working better in the new version….
Comment by Anonymous — Monday 25/4/2005 @ 21:57
Struggling to optimize php/mysql performance
News — After numerous trials and errors meant to increase the sucky performance of this web site, I installed wp-cache and I am testing a semi-static plugin based on Jerome’s new version of preformatted.
I understand the end result is tons…
Trackback by Semiologic — Monday 25/4/2005 @ 23:34
How to make it work with Bad Behavior:
http://www.ioerror.us/2005/04/24/bad-behavior-10-rc1#comment-1051
Comment by Denis de Bernardy — Tuesday 26/4/2005 @ 0:39
How do I exclude:
moderation.php
from WP cache?
What and where do I need to put the code…
Comment by Dan — Tuesday 26/4/2005 @ 7:19
To #78: Please reade previous comments, especially #67, #68. The easiest way is to rename it to wp-something.php.
Comment by gallir — Tuesday 26/4/2005 @ 10:20
Ricardo,
I was wondering if there is anyway that it can be set to cache a page only after it has been open for ‘n’ seconds. At the moment I am I finding the googlebot and suchlike are triggering the creation of many pages that I doubt (human) visitors to my site would ever call on. I thought that if if could cache after a few seconds, it would stop the bot-created pages and save some server space.
Comment by Ian — Tuesday 26/4/2005 @ 17:25
But if I rename moderation.php (A WordPRess admin file) it will no longer be valid, in teh WP distro…
Comment by Anonymous — Tuesday 26/4/2005 @ 20:20
No file in wp-admin directory are cached.
Comment by gallir — Tuesday 26/4/2005 @ 20:28
I beg to differ - When I try and moderate comments - I get a cached page every time!
Comment by Anonymous — Tuesday 26/4/2005 @ 22:20
I see you problem now. It’s not the moderation is cached, but the there is no hook in WP to call WP-cache function to delete previous cached files.
Editing any post or comment will do the trick (wp does call to wp-cache in those cases).
Comment by gallir — Tuesday 26/4/2005 @ 23:03
Is there a way to add it to the array of UNacceptable files?
Comment by Dan — Wednesday 27/4/2005 @ 1:27
No, you did not understand the real problema. moderation.php is not being cached at all, what happnes is that wp-cadche does not delete old caches after you moderated a post.
We/I should propose to WP developers to add a new hook for moderations and attach wp-cache to this **future** hook (or I should provide a patch to WordPress, which I would prefer not to).
Comment by gallir — Wednesday 27/4/2005 @ 1:49
Downloaded, installed as directed, cache folder chmod 777, wp-config.php edited. I now have “cannot connect to database” errors. So I uninstalled - deleted file and cache folder, and returned wp-config.php to initial state. Still getting the database not found errors.
Linux server, Apache version 1.3.33 (Unix); PERL version 5.8.0; PHP version 4.3.10; MySQL version 4.0.22-standard
I have backups, etc. and stuff I can do to return the blog to it’s original state, but perhaps you have a quicker fix?
Comment by Vkaryl — Wednesday 27/4/2005 @ 4:36
I had that problem in 1.5.5
Comment by Anonymous — Wednesday 27/4/2005 @ 5:23
Hmmm. Fixed. Had to create a new user/password pair through phpMyAdmin and add the new user to the database. Weird. Probably a nice program addition, but I’m not messing with it again. Thanks anyway.
Comment by Vkaryl — Wednesday 27/4/2005 @ 5:23
To #87, #88, #89: Wp-cache does not touch the database at all. So it was another problem completeley unrelated to wp-cache. More probably **you messed your wp-config.php**.
Again, wp-cache does not touch the database, in fact it does not read it neither. It only store result from the php code in the wp-content/cache directory.
Comment by gallir — Wednesday 27/4/2005 @ 9:08
Then what should the WP config l;ook like?
Comment by Anonymous — Wednesday 27/4/2005 @ 22:31
Hi Ricardo,
I make the installation, but the cache folder still empty. And when I go to script url:
http://www.serverbr3.com/~mangas/wp-content/advanced-cache.php
I get this error:
“Your cache directory (ABSPATHwp-content/cache) needs to be writable for this plugin to work. Double-check it.”
I’ve checked the folder’s permissions, it is correct (chmod 777). Can you help me? Please!
Comment by Kan — Friday 29/4/2005 @ 18:58
Ricardo,
it seems there is a failure with the qoutation marks in define(’WP_CACHE’, true); shouldn’t it be define(’WP_CACHE’, true); ? at least i had to change it that way!?
but anyways great work!
Comment by Sid — Saturday 30/4/2005 @ 17:15
Of course, it is just a problem of “copy&paste” from the HTML (and WP conversions), in PHP you can only use simple ” and ‘ for defining string and symbols.
Comment by gallir — Saturday 30/4/2005 @ 17:49
I have the same problem as Kan - “Your cache directory (ABSPATHwp-content/cache) needs to be writable for this plugin to work. Double-check it.”
Any news on this?
Comment by Karl Bedingfield — Sunday 1/5/2005 @ 10:20
You are not using “standard single quotes”.
Comment by gallir — Sunday 1/5/2005 @ 10:40
Who me? Yes I am
Comment by Karl Bedingfield — Sunday 1/5/2005 @ 11:25
Remote posting now works fine, thank you very much (re Post #69 re Ecto above), but if you create and post an entry with a future date on it, WP-Cache doesn’t update the weblog page when the post is actually published properly at the correct time/date. If you switch off WP-Cache, the posts then appear as they should do.
Comment by NP — Wednesday 4/5/2005 @ 14:42
I’m reading again, it’s not a problema of WP-Cache:
1. You don’t have permissions to write in cache directory (check it out).
2. You don’t have semaphores nor flock functions. WP-Cache needs one of them.
Comment by gallir — Thursday 5/5/2005 @ 23:09
Thanks.
1. How can I check for “semaphore or flock” functions?
2. Can I enable caching to be “forever unless I change the content of the entry”?
Comment by Craig — Friday 6/5/2005 @ 5:28
Please try WP-Cache 2.0, it will give you detailed error messages and instructions.
Comment by gallir — Friday 6/5/2005 @ 9:08
Hi Ricardo, I’ve been using WP-Cache for several months now and it’s been a great success. My DB is now predominantly idle, and since WP is installed on different machine the page load time is significantly improved too - thanks.
I have a feature request.
Is it possible (without too much overhead) to create “cache_hit” and “cache_miss” hooks?
Currently I can have logging attached to the shutdown hook, but this doesn’t get called when there is a cache hit - so I’ve had to hard code a fix into wp-settings, which makes upgrading more difficult.
I’d like to be able to log the cache events properly, without having to resort to manual tweaks - any chance?
Comment by Rich Boakes — Wednesday 2/11/2005 @ 20:56
I almost missed this comment. Please go to wp-cache2 page… nevertheless, i will think about for a new version. It is possible.
Comment by gallir — Friday 4/11/2005 @ 2:32
Performance Tuning von Wordpress
In den letzten Wochen war mein Server öfter mal nahe am Anschlag und kurzfristig sogar mal darüber hinaus. Zur Entspannung der Situation liefere ich seit ein paar Wochen einige Seiten statisch aus einem Cache aus. In den folgenden Tagen werde ich ma…
Trackback by Mein Parteibuch — Wednesday 22/3/2006 @ 13:03