logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_memcached_cache.so
Author
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 25 Oct '10 10:11    Post subject: mod_memcached_cache.so Reply with quote

Can anybody compile it

U use now Mod_mem_cache but its buqy

So i find this module it use memcache like nginx

I will be thank foll

http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 25 Oct '10 11:39    Post subject: Reply with quote

I tried to. But the the requiert apr_mem_cache does not build against the current APR version.

Code:

apr_memcache.c(120) : error C2491: 'apr_memcache_add_server' : definition of dllimport function not allowed
apr_memcache.c(137) : error C2491: 'apr_memcache_find_server_hash' : definition of dllimport function not allowed
apr_memcache.c(180) : error C2491: 'apr_memcache_find_server' : definition of dllimport function not allowed
apr_memcache.c(223) : error C2491: 'apr_memcache_enable_server' : definition of dllimport function not allowed
apr_memcache.c(235) : error C2491: 'apr_memcache_disable_server' : definition of dllimport function not allowed
apr_memcache.c(318) : error C2491: 'apr_memcache_server_create' : definition of dllimport function not allowed
apr_memcache.c(361) : error C2491: 'apr_memcache_create' : definition of dllimport function not allowed
apr_memcache.c(449) : warning C4028: formal parameter 2 different from declaration
apr_memcache.c(449) : error C2491: 'apr_memcache_hash' : definition of dllimport function not allowed
apr_memcache.c(529) : warning C4013: 'snprintf' undefined; assuming extern returning int
apr_memcache.c(578) : error C2491: 'apr_memcache_set' : definition of dllimport function not allowed
apr_memcache.c(593) : error C2491: 'apr_memcache_add' : definition of dllimport function not allowed
apr_memcache.c(608) : error C2491: 'apr_memcache_replace' : definition of dllimport function not allowed
apr_memcache.c(624) : error C2491: 'apr_memcache_getp' : definition of dllimport function not allowed
apr_memcache.c(754) : error C2491: 'apr_memcache_delete' : definition of dllimport function not allowed
apr_memcache.c(893) : error C2491: 'apr_memcache_incr' : definition of dllimport function not allowed
apr_memcache.c(908) : error C2491: 'apr_memcache_decr' : definition of dllimport function not allowed
apr_memcache.c(923) : error C2491: 'apr_memcache_version' : definition of dllimport function not allowed
apr_memcache.c(1164) : error C2491: 'apr_memcache_stats' : definition of dllimport function not allowed


apr_memcache is from 2005 and mod_memcached_cache from 2007
At least for me I don't see there a chance to compile it without rewrite the code and I'm not a C programmer
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 25 Oct '10 11:42    Post subject: Reply with quote

OK thx, i fix some issue from apache mem_cache and its work for me now last time not cache some js or css file
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 25 Oct '10 11:47    Post subject: Reply with quote

It would be nice if you could offer your changes in a patch file (-:
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 25 Oct '10 11:59    Post subject: Reply with quote

I fix cfg in apache mod_mem_cahe not mod_memcache_cache

Smile
Back to top
Sob



Joined: 19 Apr 2008
Posts: 30

PostPosted: Tue 26 Oct '10 16:38    Post subject: Reply with quote

Worked for me: http://web.hisoftware.cz/sob/download/mod_memcached_cache-0.1.0-httpd-2.2.17.zip

It loads into server, but otherwise it's completely untested. If it actually does something, that's up to someone else to try.

Compiled using:
Code:
cl.exe /MD /W3 /O2 /D WIN32 /D NDEBUG -I"C:\Apache22\include" -I. -c mod_memcached_cache.c
link.exe /dll /machine:X86 /OUT:mod_memcached_cache.so /libpath:"C:\Apache22\lib" mod_memcached_cache.obj libaprutil-1.lib libapr-1.lib libhttpd.lib mod_cache.lib

Sources from httpd 2.2.17, so it's APR 1.4.2 and APR-util 1.3.10.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 26 Oct '10 23:55    Post subject: Reply with quote

Did you forgot to include the manifest code?
Code:

MT -manifest mod_memcached_cache.so.manifest -outputresource:mod_memcached_cache.so;2
Back to top
Sob



Joined: 19 Apr 2008
Posts: 30

PostPosted: Wed 27 Oct '10 1:12    Post subject: Reply with quote

Not exactly. I mean it's not there, but it's because (laugh if you want Smile I didn't really know it should be there. I briefly remember manifests from few years ago when they were needed for XP UI or something. I never really thought about it much. When I check exes and dlls built from IDE, they seem to include it by default. For manual command line builds they're missing, but nothing ever complained, so... Wink

I updated the files in zip now. Same URL.
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Wed 27 Oct '10 14:08    Post subject: Reply with quote

Work for me, now its time to benchmark Smile

http://loadimpact.com/index.php

last time 400ms now 309 ms

Nice Smile

For memcache

http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/

And some admin memcached.exe Smile

http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/



<?PHP
@set_time_limit(0);


for ($i = 1; $i < 950; $i++) {
getPage('http://url/');
echo "\n";
echo 'total-time:' . $curl_info['total_time'] . "\n";
echo 'connect_time:' . $curl_info['connect_time'] . "\n";
echo 'start_transfer:' . $curl_info['starttransfer_time'] . "\n";
echo 'pre_transfer:' . $curl_info['pretransfer_time'] . "#\n";


$d[] = $curl_info['total_time'];
}

echo average($d) . "\n";

function average($a){
return array_sum($a)/count($a) ;
}

die;

?>
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Wed 27 Oct '10 16:24    Post subject: Reply with quote

For me its buqy delivery content as gziped x2 so all js or css are crashed
Back to top


Reply to topic   Topic: mod_memcached_cache.so View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules