Solved

Wordpress WP-Cache plugin - Won't work with Zeus server??

Posted on 2009-07-03
8
1,031 Views
Last Modified: 2013-12-02
Hey guys.

I find my Wordpress driven site rather slow and am trying to do whatever I can to increase its speed. I found a plugin called WP-Cache which should help with load times. However, after I have activated the plugin, I keep getting an error message:

Warning: sem_get() [function.sem-get]: failed for key 0x152b: Permission denied in /primus/users/u84/raoc/public_html/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 98

I've tried finding a solution to this online but no luck. I'm not entirely sure what the issue is. I've looked into the file permission settings and that shouldn't be the problem.

The only thing I can think of is that my site is running on a Zeus web server so there may be some incapability issues. Anyway, if anyone has any suggestions, I can really use the help. Thanks!

P.S. You can find the site here: www.operationlifesaver.ca
Picture-1.png
0
Comment
Question by:Adam
  • 4
  • 4
8 Comments
 
LVL 3

Accepted Solution

by:
razor19 earned 500 total points
ID: 24774708
Hey there -

Try opening wp-cache config file - in the /wp-content/ folder

Look for the line:
//$use_flock = true; //..

Remove the slashes from the front:
$use_flock = true;

See if that works. :)

0
 
LVL 3

Expert Comment

by:razor19
ID: 24774714
Make sure you keep the rest of the line (the // text....) after the semi-colon.
0
 
LVL 1

Author Comment

by:Adam
ID: 24774997
Thanks for the reply razor19.

Just to clarify, do you mean the wp-cache-config.php file that's in the /wp-content/ folder or the wp-cache.php file which is in the /wp-content/plugins/wp-cache/ folder.

Either way, I couldn't seem to find $use_flock = true;

I've attached the code from the wp-cache-config.php below if you want to take a look. Not sure if I'm missing something. Let me know if you would like to see the folder from the wp-cache plugin folder.

Thanks for the help!

<?php
/*
WP-Cache Config Sample File
 
See wp-cache.php for author details.
*/
 
$cache_enabled = false; //Added by WP-Cache Manager
$cache_max_time = 3600; //in seconds
//$use_flock = true; // Set it tru or false if you know what to use
$cache_path = ABSPATH . 'wp-content/cache/';
$file_prefix = 'wp-cache-';
 
// Array of files that have 'wp-' but should still be cached 
$cache_acceptable_files = array( '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');
 
$cache_rejected_uri = array('wp-');
$cache_rejected_user_agent = array ( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider');
 
// Just modify it if you have conflicts with semaphores
$sem_id = 5419;
 
if ( '/' != substr($cache_path, -1)) {
	$cache_path .= '/';
}
 
?>

Open in new window

0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
LVL 1

Author Comment

by:Adam
ID: 24775001
And obviously - I'm aware of this line:

$cache_enabled = false;

I have to have keep it disabled or I will keep getting that error message :)

0
 
LVL 3

Assisted Solution

by:razor19
razor19 earned 500 total points
ID: 24775124
I meant the wp-cache-config file.

It's line 10 in the code you posted. :)

//$use_flock = true; // Set it tru or false if you know what to use

Change to:

$use_flock = true; // Set it tru or false if you know what to use
0
 
LVL 1

Author Comment

by:Adam
ID: 24775741
Wow...I can't believe I missed that! Strange though, I even did a search for it and it didn't show up.

Anyway, that seems to have done the trick! Thanks a bunch.

I hope you don't mind me asking you another question but do you know anything about the WP-Super Cache plugin? I was originally hoping to use that one but I was having issues activating the plugin as well. I have read that if you don't have Apache that it probably won't work.

Not sure if you know anything about it - I just figured it wouldn't hurt to ask. Either way, I will reward you the points.

Thanks again.


0
 
LVL 3

Expert Comment

by:razor19
ID: 24777222
Hey Furio - No problem, and LOL  don't worry about missing it, that happens to me all the time. What editor do you use? My editor won't show commented code when I search for it - even though it says it will on their website. Strange. :)

I've heard that the Super-Cache plugin is better, but you're right, i've also heard it doesn't play well with anything other then Apache. Personally, though, I don't have any expierience with it - i've always just used the WP-Cache. I've also heard it conflicts with way more "standard" plugins then WP-Cache.

Cheers dude!

0
 
LVL 1

Author Closing Comment

by:Adam
ID: 31599622
Thanks again for the help razor19. I really appreciate it.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question