Displaying 20 results from an estimated 4000 matches similar to: "Weird caching error"
2012 Aug 08
1
Memcache and Rails - Storing String as values.
Hello all,
I have been using Memcache with my rails application to store certain
key value pair.... I am using Dalli gem for the same... So Here''s what i
do from console:
require ''dalli''
dc = Dalli::Client.new(''remoteserver:11211'')
dc.set(''example_link'', "http://www.google.com")
=> true
value =
2010 Oct 04
4
http caching a dynamic page
Is it possible to take advantage of http caching/proxy caching with
dynamic pages? i.e. pages with section/part that can change over time
but certain part of the page remain the same. I would rather not keep
re-rendering the static part but insure the dynamic part are rendered
with fresh data.
I am using memcached mostly as an object store that I can minimize db
hits but I still am rendering a
2015 May 24
2
specify port on check_memcached.pl
Hey guys,
I'm trying use check_memcached.pl to monitor a couple of memcached services
running on two ports.
I have my command definition setup like this:
# 'check_memcached' command definition
define command {
command_name check_memcached
command_line $USER1$/check_memcached.pl -H $HOSTADDRESS$ -p $ARG1$
}
And I have my service definitions setup like this:
# Define a
2015 Mar 18
0
multiple memcached buckets in CentOS 7
>
>
> Now, under CentOS 7, I see we have two files controlling memcached under
> the new sysctl system. At least, using sysctl is new to me!
>
> I see we have this file:
>
> [root at web1:~] #cat /usr/lib/systemd/system/memcached.service
> [Unit]
> Description=Memcached
> Before=httpd.service
> After=network.target
>
> [Service]
> Type=simple
>
2008 Dec 12
1
CentOS 5.2 + iptables + memcached Problem
Hi,
I'm experiencing the most perplexing problem with iptables on CentOS
5.2. I'm hoping someone can point out what I must be missing here.
I have memcached set up on several nodes on an internal network. I
have the following rules set up to allow traffic between memcached
nodes:
IPTABLES -A INPUT -i bond0 -p tcp -m tcp -s 192.168.1.0/24 -d
192.168.1.0/24 --dport 11211 -j ACCEPT
2010 Sep 18
3
max-age/header problems with nginx
0 down vote favorite
I notice that in my production enviornment (where I have memcached
implemented) in see a cache-control - max-age header in firebug,
anytime I am looking at an index page (posts for example).
Cache-Control max-age=315360000
In my dev environment that header looks like following.
Cache-Contro private, max-age=0, must-revalidate
As far as I know I have not done anything
2015 Mar 18
1
multiple memcached buckets in CentOS 7
Hi Alberto,
With systemd it will be as easy as creating additional unit files ( one for
> each memcached instance) with its corresponding config file. That should
> allow to stop / start / restart each memcache instance individually while
> also being systemd compliant.
Thanks for the info and for the examples. It really does make sense the way
you explain it. Thanks for letting me
2006 Jan 21
3
Fragment caching with Memcached slow?
Hi,
I am trying to do fragment caching using :mem_cache_store. However, when I
compare it to fragment caching using :file_store, it seems to be a lot
slower.
Here are the results:
uncache
Completed in 2.20246 (0 reqs/sec) | Rendering: 2.19891 (99%) | DB:
0.00017(0%) | 200 OK [
http://127.0.0.1/]
using file_store
Completed in 0.00952 (105 reqs/sec) | Rendering: 0.00702 (73%) | DB:
0.00000(0%)
2009 Sep 19
0
memcached-1.4.1 and C4
Hi,
Is there someone successfully running memcached-1.4.1 on Centos 4 with
centosplus php? I'm trying to use memcached under Centos 4. I can set
values fine but
'get' returns:
[root at rakosnicek eshop]# php d.php
PHP Warning: Memcached::get(): bad type specifier while parsing
parameters in /var/www/d.php on line 6
NULL
string(7) "SUCCESS"
array(1) {
2015 Mar 18
2
multiple memcached buckets in CentOS 7
Hey guys,
OK so I'm pretty familiar with how to edit an init script for memcached so
that I can get multiple memcached 'buckets' when starting up the service.
The init script would ususally have multiple lines such as these under the
start function:
# cache_block
/usr/local/bin/memcached -d -m 128 -l `hostname -i` -p 11318 -u
daemon -c 8172 -v 2>> /tmp/memcached.log
2007 Jan 30
0
No reaction from memcached
I''ve been following the instructions here http://nubyonrails.com/
articles/read/716 on how to get started with memcached.
Starting up ./script/console production I get at couple of deprecation
warnings:
<snip>
./script/console production
Loading production environment.
DEPRECATION WARNING: model is deprecated and will be removed from
Rails 2.0 See
2011 Jul 20
0
parameters in a string for ENC
I am hoping that someone could post a working example of how they use a ''define'' has in a parameter string because I have been working on this for days to no avail (and googling & checking documentation on puppet & foreman sites.
What I am trying to accomplish is to define things within foreman ENC and duplicate the functionality I can get from just using node
2014 Aug 19
0
failure building memcached rpm
Hi all,
I need to install the latest memcached version (1.4.20) on a number of
machines in this environment. There are only rpm's of this app for RHEL 6.
But we need to install the latest memcached on a number of RHEL 5 machines.
To be specific, they are OEL 5.7 hosts.
I've installed all of the developers tools that I would need.
But when I go to build the RPM I am getting the
2012 Jan 25
0
Can't Get Caching to Work with Heroku and Memcache
I''m on Heroku and trying to implement caching in my Rails app, but I''m
running into some problems that I don''t understand. I thought it would be
easy after reading the Rails Guide and Heroku docs on caching strategies,
but apparently doing something wrong.
Issue 1: view of action doesn''t seem to expire Issue 2: when I use :layout
=> false, both my admin
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
I started using robotcoop''s CachedModel class in my project but have encountered problems when using it with the acts_as_ferret plugin. It seems it doesn''t index everything in my STI model, also if I do a search from my base STI class I get a result count but no results. If I run the same search from one of the children STI models I get the appropriate results (if the information
2010 Nov 29
3
session active_record_store
Hi,
There doesn''t seem to be any previous posts about this problem, I must
be
setting things up wrongly at very basics...
Firstly, the problem... I can''t get session[] to persist with
active_record_store. I enabled (config.action_controller.session_store =
:active_record_store) in environment.rb and created the sessions table
at my MySQL database. When I do a session[:blah] =
2014 Mar 25
0
Disconnected (auth failed, 1 attempts)
hi :
i just install dovecot-2 and start ok but login failed for test-user . i turn on all debug options , the debug info follow:
"Mar 25 14:40:10 cs2c dovecot: imap-login: Disconnected (auth failed, 1 attempts): user=<q1 at t.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured"
and the info of input->w_buffer is : cp01 CAPABILITY a001 LOGIN "q1 at
2010 May 29
0
User Error during memcached integration
Hello, I hope all is well. I am hoping someone can help me with a
problem that I am certain is user error?
The configuration details below work in all my other environments
including integration, development and qa. However, the production
servers give the following error:
unable to find server during initialization.
When I telnet to the memcached box from the server having the problem
and run
2006 Feb 12
3
memcache-client/cached_model help
Hi -
Just downloaded and installed the memcache-client and cached_model
gems and am trying to test it out on a development setup. I added
this to my environment/development.rb
CACHE = MemCache.new :c_threshold => 10_000,
:compression => true,
:debug => true,
:namespace => ''eztrip'',
2012 Jan 12
2
Unable to install Puppet Enterprise v2.0.0 for RHEL 5-x86_64
Hello All,
Unable to install Puppet Enterprise v2.0.0 for RHEL 5-x86_64.
[root@1801 puppet-enterprise-2.0.0-el-5-x86_64]# ./puppet-enterprise-
installer -a answers/full_suite.answer.sample
============================================================================================================================
Puppet Enterprise v2.0.0 installer
for el-5-x86_64