Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-07-03
8
Medium Priority
?
1,046 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 3

Accepted Solution

by:
razor19 earned 2000 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
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 
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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

650 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